diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 17:54:44 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-22 17:54:44 +0000 |
commit | 33a85f181bf099afe9067d50277ea0e85e35f302 (patch) | |
tree | 75b111393ef958b010c88ade0edba5fd3f811937 /chrome/browser/chromeos | |
parent | 55a7e5483376a196d3ba2f20ef56223d72f5a915 (diff) | |
download | chromium_src-33a85f181bf099afe9067d50277ea0e85e35f302.zip chromium_src-33a85f181bf099afe9067d50277ea0e85e35f302.tar.gz chromium_src-33a85f181bf099afe9067d50277ea0e85e35f302.tar.bz2 |
Lands http://codereview.chromium.org/2928005/ for Dill:
Loads favicons when openning back/forward menu for any urls that don't
have favicons.
BUG=5679
TEST=Restore a tab with a navigation history, check favicons.
Review URL: http://codereview.chromium.org/6708029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
6 files changed, 14 insertions, 6 deletions
diff --git a/chrome/browser/chromeos/status/clock_menu_button.h b/chrome/browser/chromeos/status/clock_menu_button.h index 3f85a2b..434309d 100644 --- a/chrome/browser/chromeos/status/clock_menu_button.h +++ b/chrome/browser/chromeos/status/clock_menu_button.h @@ -42,7 +42,7 @@ class ClockMenuButton : public StatusAreaButton, ui::Accelerator* accelerator) const { return false; } virtual bool IsItemCheckedAt(int index) const { return false; } virtual int GetGroupIdAt(int index) const { return 0; } - virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } + virtual bool GetIconAt(int index, SkBitmap* icon) { return false; } virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { return NULL; } @@ -51,6 +51,7 @@ class ClockMenuButton : public StatusAreaButton, virtual void HighlightChangedTo(int index) {} virtual void ActivatedAt(int index); virtual void MenuWillShow() {} + virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate) {} // Overridden from ResumeLibrary::Observer: virtual void PowerChanged(PowerLibrary* obj) {} diff --git a/chrome/browser/chromeos/status/input_method_menu.cc b/chrome/browser/chromeos/status/input_method_menu.cc index e004cf6..305871a 100644 --- a/chrome/browser/chromeos/status/input_method_menu.cc +++ b/chrome/browser/chromeos/status/input_method_menu.cc @@ -221,7 +221,7 @@ bool InputMethodMenu::HasIcons() const { return false; } -bool InputMethodMenu::GetIconAt(int index, SkBitmap* icon) const { +bool InputMethodMenu::GetIconAt(int index, SkBitmap* icon) { return false; } @@ -249,6 +249,10 @@ void InputMethodMenu::MenuWillShow() { // Views for Chromium OS does not support this interface yet. } +void InputMethodMenu::SetMenuModelDelegate(ui::MenuModelDelegate* delegate) { + // Not needed for current usage. +} + int InputMethodMenu::GetItemCount() const { if (!model_.get()) { // Model is not constructed yet. This means that diff --git a/chrome/browser/chromeos/status/input_method_menu.h b/chrome/browser/chromeos/status/input_method_menu.h index a336395..e377d61 100644 --- a/chrome/browser/chromeos/status/input_method_menu.h +++ b/chrome/browser/chromeos/status/input_method_menu.h @@ -48,13 +48,14 @@ class InputMethodMenu : public views::ViewMenuDelegate, ui::Accelerator* accelerator) const; virtual bool IsItemCheckedAt(int index) const; virtual int GetGroupIdAt(int index) const; - virtual bool GetIconAt(int index, SkBitmap* icon) const; + virtual bool GetIconAt(int index, SkBitmap* icon); virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const; virtual bool IsEnabledAt(int index) const; virtual ui::MenuModel* GetSubmenuModelAt(int index) const; virtual void HighlightChangedTo(int index); virtual void ActivatedAt(int index); virtual void MenuWillShow(); + virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate); // views::ViewMenuDelegate implementation. Sub classes can override the method // to adjust the position of the menu. diff --git a/chrome/browser/chromeos/status/network_menu.cc b/chrome/browser/chromeos/status/network_menu.cc index 2415490..f68454e 100644 --- a/chrome/browser/chromeos/status/network_menu.cc +++ b/chrome/browser/chromeos/status/network_menu.cc @@ -279,7 +279,7 @@ bool NetworkMenu::IsItemCheckedAt(int index) const { return true; } -bool NetworkMenu::GetIconAt(int index, SkBitmap* icon) const { +bool NetworkMenu::GetIconAt(int index, SkBitmap* icon) { if (!menu_items_[index].icon.empty()) { *icon = menu_items_[index].icon; return true; diff --git a/chrome/browser/chromeos/status/network_menu.h b/chrome/browser/chromeos/status/network_menu.h index 9187799..f96d49f 100644 --- a/chrome/browser/chromeos/status/network_menu.h +++ b/chrome/browser/chromeos/status/network_menu.h @@ -99,7 +99,7 @@ class NetworkMenu : public views::ViewMenuDelegate, ui::Accelerator* accelerator) const { return false; } virtual bool IsItemCheckedAt(int index) const; virtual int GetGroupIdAt(int index) const { return 0; } - virtual bool GetIconAt(int index, SkBitmap* icon) const; + virtual bool GetIconAt(int index, SkBitmap* icon); virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { return NULL; } @@ -108,6 +108,7 @@ class NetworkMenu : public views::ViewMenuDelegate, virtual void HighlightChangedTo(int index) {} virtual void ActivatedAt(int index); virtual void MenuWillShow() {} + virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate) {} void SetFirstLevelMenuWidth(int width); diff --git a/chrome/browser/chromeos/status/power_menu_button.h b/chrome/browser/chromeos/status/power_menu_button.h index a839e63..709d2bc4 100644 --- a/chrome/browser/chromeos/status/power_menu_button.h +++ b/chrome/browser/chromeos/status/power_menu_button.h @@ -41,7 +41,7 @@ class PowerMenuButton : public StatusAreaButton, ui::Accelerator* accelerator) const { return false; } virtual bool IsItemCheckedAt(int index) const { return false; } virtual int GetGroupIdAt(int index) const { return 0; } - virtual bool GetIconAt(int index, SkBitmap* icon) const { return false; } + virtual bool GetIconAt(int index, SkBitmap* icon) { return false; } virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const { return NULL; } @@ -50,6 +50,7 @@ class PowerMenuButton : public StatusAreaButton, virtual void HighlightChangedTo(int index) {} virtual void ActivatedAt(int index) {} virtual void MenuWillShow() {} + virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate) {} // PowerLibrary::Observer implementation. virtual void PowerChanged(PowerLibrary* obj); |