~osomon/oxide/power-save-blocker

« back to all changes in this revision

Viewing changes to shared/browser/oxide_web_view.cc

  • Committer: Olivier Tilloy
  • Date: 2014-05-30 08:36:18 UTC
  • mfrom: (321.2.9 icon)
  • Revision ID: olivier.tilloy@canonical.com-20140530083618-rexm6xc99hx0yxuh
Add an 'icon' property to the QML WebView.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "content/public/browser/notification_types.h"
38
38
#include "content/public/browser/render_view_host.h"
39
39
#include "content/public/browser/web_contents.h"
 
40
#include "content/public/common/favicon_url.h"
40
41
#include "content/public/common/menu_item.h"
41
42
#include "content/public/common/url_constants.h"
42
43
#include "net/base/net_errors.h"
569
570
  }
570
571
}
571
572
 
 
573
void WebView::DidUpdateFaviconURL(
 
574
    const std::vector<content::FaviconURL>& candidates) {
 
575
  std::vector<content::FaviconURL>::const_iterator it;
 
576
  for (it = candidates.begin(); it != candidates.end(); ++it) {
 
577
    if (it->icon_type == content::FaviconURL::FAVICON) {
 
578
      OnIconChanged(it->icon_url);
 
579
      return;
 
580
    }
 
581
  }
 
582
}
 
583
 
572
584
void WebView::OnURLChanged() {}
573
585
void WebView::OnTitleChanged() {}
 
586
void WebView::OnIconChanged(const GURL& icon) {}
574
587
void WebView::OnCommandsUpdated() {}
575
588
 
576
589
void WebView::OnLoadProgressChanged(double progress) {}