diff options
Diffstat (limited to 'chrome/browser/ui')
29 files changed, 48 insertions, 55 deletions
diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc index bd70c32..f85c9aa 100644 --- a/chrome/browser/ui/browser_init.cc +++ b/chrome/browser/ui/browser_init.cc @@ -1086,9 +1086,9 @@ void BrowserInit::LaunchWithProfile::AddBadFlagsInfoBarIfNecessary( class LearnMoreInfoBar : public LinkInfoBarDelegate { public: - explicit LearnMoreInfoBar(TabContents* tab_contents, - const string16& message, - const GURL& url); + LearnMoreInfoBar(TabContents* tab_contents, + const string16& message, + const GURL& url); virtual ~LearnMoreInfoBar(); virtual string16 GetMessageTextWithOffset(size_t* link_offset) const OVERRIDE; diff --git a/chrome/browser/ui/cocoa/download/download_shelf_mac.h b/chrome/browser/ui/cocoa/download/download_shelf_mac.h index 1320c3d..e2b626c 100644 --- a/chrome/browser/ui/cocoa/download/download_shelf_mac.h +++ b/chrome/browser/ui/cocoa/download/download_shelf_mac.h @@ -22,8 +22,7 @@ class DownloadItemMac; class DownloadShelfMac : public DownloadShelf { public: - explicit DownloadShelfMac(Browser* browser, - DownloadShelfController* controller); + DownloadShelfMac(Browser* browser, DownloadShelfController* controller); // DownloadShelf implementation. virtual void AddDownload(BaseDownloadItemModel* download_model); diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h index 3e075a8..07cddc8 100644 --- a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h +++ b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_instructions_gtk.h @@ -27,7 +27,7 @@ class BookmarkBarInstructionsGtk : public NotificationObserver { virtual ~Delegate() {} }; - explicit BookmarkBarInstructionsGtk(Delegate* delegate, Profile* profile); + BookmarkBarInstructionsGtk(Delegate* delegate, Profile* profile); // Get the native widget. GtkWidget* widget() const { return instructions_hbox_; } diff --git a/chrome/browser/ui/gtk/browser_titlebar.cc b/chrome/browser/ui/gtk/browser_titlebar.cc index 77331de..61f7988 100644 --- a/chrome/browser/ui/gtk/browser_titlebar.cc +++ b/chrome/browser/ui/gtk/browser_titlebar.cc @@ -150,8 +150,7 @@ GdkColor PickLuminosityContrastingColor(const GdkColor* base, // user clicks on the favicon) and all of its submenus. class PopupPageMenuModel : public ui::SimpleMenuModel { public: - explicit PopupPageMenuModel(ui::SimpleMenuModel::Delegate* delegate, - Browser* browser); + PopupPageMenuModel(ui::SimpleMenuModel::Delegate* delegate, Browser* browser); virtual ~PopupPageMenuModel() { } private: diff --git a/chrome/browser/ui/gtk/browser_toolbar_gtk.h b/chrome/browser/ui/gtk/browser_toolbar_gtk.h index 090ef6a..cd5d864 100644 --- a/chrome/browser/ui/gtk/browser_toolbar_gtk.h +++ b/chrome/browser/ui/gtk/browser_toolbar_gtk.h @@ -43,7 +43,7 @@ class BrowserToolbarGtk : public CommandUpdater::CommandObserver, public MenuGtk::Delegate, public NotificationObserver { public: - explicit BrowserToolbarGtk(Browser* browser, BrowserWindowGtk* window); + BrowserToolbarGtk(Browser* browser, BrowserWindowGtk* window); virtual ~BrowserToolbarGtk(); // Create the contents of the toolbar. |top_level_window| is the GtkWindow diff --git a/chrome/browser/ui/gtk/bubble/bubble_gtk.h b/chrome/browser/ui/gtk/bubble/bubble_gtk.h index b11b45f..d5d5958 100644 --- a/chrome/browser/ui/gtk/bubble/bubble_gtk.h +++ b/chrome/browser/ui/gtk/bubble/bubble_gtk.h @@ -97,7 +97,7 @@ class BubbleGtk : public NotificationObserver { FRAME_STROKE, }; - explicit BubbleGtk(GtkThemeService* provider, bool match_system_theme); + BubbleGtk(GtkThemeService* provider, bool match_system_theme); virtual ~BubbleGtk(); // Creates the Bubble. diff --git a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h index 5a7a15a..f10dfaa 100644 --- a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h +++ b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h @@ -100,8 +100,8 @@ class CreateChromeApplicationShortcutsDialogGtk // Displays the dialog box to create application shortcuts for |app|. static void Show(GtkWindow* parent, const Extension* app); - explicit CreateChromeApplicationShortcutsDialogGtk(GtkWindow* parent, - const Extension* app); + CreateChromeApplicationShortcutsDialogGtk(GtkWindow* parent, + const Extension* app); virtual ~CreateChromeApplicationShortcutsDialogGtk() {} // Implement ImageLoadingTracker::Observer. |tracker_| is used to diff --git a/chrome/browser/ui/gtk/custom_drag.h b/chrome/browser/ui/gtk/custom_drag.h index 8ec9936..6703def 100644 --- a/chrome/browser/ui/gtk/custom_drag.h +++ b/chrome/browser/ui/gtk/custom_drag.h @@ -23,7 +23,7 @@ class Image; // Base class for programatically generated drags. class CustomDrag { protected: - explicit CustomDrag(gfx::Image* icon, int code_mask, GdkDragAction action); + CustomDrag(gfx::Image* icon, int code_mask, GdkDragAction action); virtual ~CustomDrag(); virtual void OnDragDataGet(GtkWidget* widget, GdkDragContext* context, diff --git a/chrome/browser/ui/gtk/download/download_shelf_gtk.h b/chrome/browser/ui/gtk/download/download_shelf_gtk.h index fd777a9..8088cca 100644 --- a/chrome/browser/ui/gtk/download/download_shelf_gtk.h +++ b/chrome/browser/ui/gtk/download/download_shelf_gtk.h @@ -36,7 +36,7 @@ class DownloadShelfGtk : public DownloadShelf, public SlideAnimatorGtk::Delegate, public MessageLoopForUI::Observer { public: - explicit DownloadShelfGtk(Browser* browser, gfx::NativeView view); + DownloadShelfGtk(Browser* browser, gfx::NativeView view); virtual ~DownloadShelfGtk(); diff --git a/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.h index d1591a9..c28997a 100644 --- a/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.h @@ -13,8 +13,8 @@ class TranslateInfoBarDelegate; class AfterTranslateInfoBar : public TranslateInfoBarBase { public: - explicit AfterTranslateInfoBar(TabContentsWrapper* owner, - TranslateInfoBarDelegate* delegate); + AfterTranslateInfoBar(TabContentsWrapper* owner, + TranslateInfoBarDelegate* delegate); virtual ~AfterTranslateInfoBar(); // Overridden from TranslateInfoBarBase: diff --git a/chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.h index 3b693ec..f412c81 100644 --- a/chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.h @@ -12,8 +12,8 @@ class TranslateInfoBarDelegate; class BeforeTranslateInfoBar : public TranslateInfoBarBase { public: - explicit BeforeTranslateInfoBar(TabContentsWrapper* owner, - TranslateInfoBarDelegate* delegate); + BeforeTranslateInfoBar(TabContentsWrapper* owner, + TranslateInfoBarDelegate* delegate); virtual ~BeforeTranslateInfoBar(); // Overridden from TranslateInfoBarBase: diff --git a/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.h index e37754f..35dc89c 100644 --- a/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.h @@ -19,8 +19,8 @@ typedef struct _GtkWidget GtkWidget; // "Would you like to do X? [Yes] [No] _Learn More_ [x]" class ConfirmInfoBarGtk : public InfoBarGtk { public: - explicit ConfirmInfoBarGtk(TabContentsWrapper* owner, - ConfirmInfoBarDelegate* delegate); + ConfirmInfoBarGtk(TabContentsWrapper* owner, + ConfirmInfoBarDelegate* delegate); private: virtual ~ConfirmInfoBarGtk(); diff --git a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h index 428f25f..80b3f9b 100644 --- a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h @@ -20,8 +20,8 @@ class ExtensionInfoBarGtk : public InfoBarGtk, public ImageLoadingTracker::Observer, public ExtensionViewGtk::Container { public: - explicit ExtensionInfoBarGtk(TabContentsWrapper* owner, - ExtensionInfoBarDelegate* delegate); + ExtensionInfoBarGtk(TabContentsWrapper* owner, + ExtensionInfoBarDelegate* delegate); virtual ~ExtensionInfoBarGtk(); // Overridden from ImageLoadingTracker::Observer: diff --git a/chrome/browser/ui/gtk/infobars/infobar_container_gtk.h b/chrome/browser/ui/gtk/infobars/infobar_container_gtk.h index 73e821c..2252493 100644 --- a/chrome/browser/ui/gtk/infobars/infobar_container_gtk.h +++ b/chrome/browser/ui/gtk/infobars/infobar_container_gtk.h @@ -38,8 +38,7 @@ typedef struct _GtkWidget GtkWidget; // we can't just overlap the widgets. class InfoBarContainerGtk : public InfoBarContainer { public: - explicit InfoBarContainerGtk(InfoBarContainer::Delegate* delegate, - Profile* profile); + InfoBarContainerGtk(InfoBarContainer::Delegate* delegate, Profile* profile); virtual ~InfoBarContainerGtk(); // Get the native widget. diff --git a/chrome/browser/ui/gtk/infobars/infobar_gtk.h b/chrome/browser/ui/gtk/infobars/infobar_gtk.h index a757a3a..a84a962 100644 --- a/chrome/browser/ui/gtk/infobars/infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/infobar_gtk.h @@ -25,7 +25,7 @@ class InfoBarDelegate; class InfoBarGtk : public InfoBar, public NotificationObserver { public: - explicit InfoBarGtk(TabContentsWrapper* owner, InfoBarDelegate* delegate); + InfoBarGtk(TabContentsWrapper* owner, InfoBarDelegate* delegate); virtual ~InfoBarGtk(); // Get the top level native GTK widget for this infobar. diff --git a/chrome/browser/ui/gtk/infobars/link_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/link_infobar_gtk.h index 37de260..c6f5168 100644 --- a/chrome/browser/ui/gtk/infobars/link_infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/link_infobar_gtk.h @@ -15,8 +15,7 @@ class LinkInfoBarDelegate; // An infobar that shows a string with an embedded link. class LinkInfoBarGtk : public InfoBarGtk { public: - explicit LinkInfoBarGtk(TabContentsWrapper* owner, - LinkInfoBarDelegate* delegate); + LinkInfoBarGtk(TabContentsWrapper* owner, LinkInfoBarDelegate* delegate); private: virtual ~LinkInfoBarGtk(); diff --git a/chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h b/chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h index f55997c..bb09172 100644 --- a/chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h +++ b/chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h @@ -17,8 +17,8 @@ class TranslateInfoBarDelegate; // use. class TranslateInfoBarBase : public InfoBarGtk { public: - explicit TranslateInfoBarBase(TabContentsWrapper* owner, - TranslateInfoBarDelegate* delegate); + TranslateInfoBarBase(TabContentsWrapper* owner, + TranslateInfoBarDelegate* delegate); virtual ~TranslateInfoBarBase(); // Initializes the infobar widgets. Should be called after the object has been diff --git a/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h index d05ba45..2635546 100644 --- a/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h +++ b/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h @@ -12,8 +12,8 @@ class TranslateInfoBarDelegate; class TranslateMessageInfoBar : public TranslateInfoBarBase { public: - explicit TranslateMessageInfoBar(TabContentsWrapper* owner, - TranslateInfoBarDelegate* delegate); + TranslateMessageInfoBar(TabContentsWrapper* owner, + TranslateInfoBarDelegate* delegate); virtual ~TranslateMessageInfoBar(); // Overridden from TranslateInfoBarBase: diff --git a/chrome/browser/ui/gtk/sad_tab_gtk.h b/chrome/browser/ui/gtk/sad_tab_gtk.h index 03ab37f..a3547e6 100644 --- a/chrome/browser/ui/gtk/sad_tab_gtk.h +++ b/chrome/browser/ui/gtk/sad_tab_gtk.h @@ -20,7 +20,7 @@ class SadTabGtk { KILLED // The tab was killed. Display the killed tab page. }; - explicit SadTabGtk(TabContents* tab_contents, Kind kind); + SadTabGtk(TabContents* tab_contents, Kind kind); virtual ~SadTabGtk(); GtkWidget* widget() const { return event_box_.get(); } diff --git a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc index 22185f2..142e4cb 100644 --- a/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc +++ b/chrome/browser/ui/gtk/tabs/tab_strip_gtk.cc @@ -263,7 +263,7 @@ class TabStripGtk::TabAnimation : public ui::AnimationDelegate { // Handles insertion of a Tab at |index|. class InsertTabAnimation : public TabStripGtk::TabAnimation { public: - explicit InsertTabAnimation(TabStripGtk* tabstrip, int index) + InsertTabAnimation(TabStripGtk* tabstrip, int index) : TabAnimation(tabstrip, INSERT), index_(index) { int tab_count = tabstrip->GetTabCount(); @@ -526,7 +526,7 @@ class ResizeLayoutAnimation : public TabStripGtk::TabAnimation { // in the model. class MiniTabAnimation : public TabStripGtk::TabAnimation { public: - explicit MiniTabAnimation(TabStripGtk* tabstrip, int index) + MiniTabAnimation(TabStripGtk* tabstrip, int index) : TabAnimation(tabstrip, MINI), index_(index) { int tab_count = tabstrip->GetTabCount(); @@ -586,10 +586,10 @@ class MiniTabAnimation : public TabStripGtk::TabAnimation { // result. class MiniMoveAnimation : public TabStripGtk::TabAnimation { public: - explicit MiniMoveAnimation(TabStripGtk* tabstrip, - int from_index, - int to_index, - const gfx::Rect& start_bounds) + MiniMoveAnimation(TabStripGtk* tabstrip, + int from_index, + int to_index, + const gfx::Rect& start_bounds) : TabAnimation(tabstrip, MINI_MOVE), tab_(tabstrip->GetTabAt(to_index)), start_bounds_(start_bounds), diff --git a/chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.h b/chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.h index 2ed407f..7c6a014 100644 --- a/chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.h +++ b/chrome/browser/ui/search_engines/template_url_fetcher_ui_callbacks.h @@ -18,8 +18,8 @@ class TabContents; class TemplateURLFetcherUICallbacks : public TemplateURLFetcherCallbacks, public NotificationObserver { public: - explicit TemplateURLFetcherUICallbacks(SearchEngineTabHelper* tab_helper, - TabContents* tab_contents); + TemplateURLFetcherUICallbacks(SearchEngineTabHelper* tab_helper, + TabContents* tab_contents); virtual ~TemplateURLFetcherUICallbacks(); // TemplateURLFetcherCallback implementation. diff --git a/chrome/browser/ui/search_engines/template_url_table_model.cc b/chrome/browser/ui/search_engines/template_url_table_model.cc index 6690a16..df098cd 100644 --- a/chrome/browser/ui/search_engines/template_url_table_model.cc +++ b/chrome/browser/ui/search_engines/template_url_table_model.cc @@ -34,8 +34,7 @@ static SkBitmap* default_icon = NULL; class ModelEntry { public: - explicit ModelEntry(TemplateURLTableModel* model, - const TemplateURL& template_url) + ModelEntry(TemplateURLTableModel* model, const TemplateURL& template_url) : template_url_(template_url), load_state_(NOT_LOADED), model_(model) { diff --git a/chrome/browser/ui/views/create_application_shortcut_view.h b/chrome/browser/ui/views/create_application_shortcut_view.h index c325330..9c56810 100644 --- a/chrome/browser/ui/views/create_application_shortcut_view.h +++ b/chrome/browser/ui/views/create_application_shortcut_view.h @@ -114,8 +114,7 @@ class CreateChromeApplicationShortcutView : public CreateApplicationShortcutView, public ImageLoadingTracker::Observer { public: - explicit CreateChromeApplicationShortcutView(Profile* profile, - const Extension* app); + CreateChromeApplicationShortcutView(Profile* profile, const Extension* app); virtual ~CreateChromeApplicationShortcutView(); // Implement ImageLoadingTracker::Observer. |tracker_| is used to diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc index a6cf6fa..41cf512 100644 --- a/chrome/browser/ui/views/frame/browser_view.cc +++ b/chrome/browser/ui/views/frame/browser_view.cc @@ -181,9 +181,9 @@ static gfx::NativeWindow GetNormalBrowserWindowForBrowser(Browser* browser, // and paint the bookmark bar. class BookmarkExtensionBackground : public views::Background { public: - explicit BookmarkExtensionBackground(BrowserView* browser_view, - DetachableToolbarView* host_view, - Browser* browser); + BookmarkExtensionBackground(BrowserView* browser_view, + DetachableToolbarView* host_view, + Browser* browser); // View methods overridden from views:Background. virtual void Paint(gfx::Canvas* canvas, views::View* view) const; diff --git a/chrome/browser/ui/views/sad_tab_view.h b/chrome/browser/ui/views/sad_tab_view.h index 5580013..7d571c0 100644 --- a/chrome/browser/ui/views/sad_tab_view.h +++ b/chrome/browser/ui/views/sad_tab_view.h @@ -30,7 +30,7 @@ class SadTabView : public views::View, KILLED // The tab was killed. Display the killed tab page. }; - explicit SadTabView(TabContents* tab_contents, Kind kind); + SadTabView(TabContents* tab_contents, Kind kind); virtual ~SadTabView(); // Overridden from views::View: diff --git a/chrome/browser/ui/views/tabs/side_tab_strip.cc b/chrome/browser/ui/views/tabs/side_tab_strip.cc index 5e099e3..f7edbfa 100644 --- a/chrome/browser/ui/views/tabs/side_tab_strip.cc +++ b/chrome/browser/ui/views/tabs/side_tab_strip.cc @@ -78,7 +78,7 @@ class ScrollButton : public views::TextButton { DOWN }; - explicit ScrollButton(views::ButtonListener* listener, Type type); + ScrollButton(views::ButtonListener* listener, Type type); protected: // views::View overrides. diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc index e8cbc05..3b2d4c3 100644 --- a/chrome/browser/ui/views/tabs/tab_strip.cc +++ b/chrome/browser/ui/views/tabs/tab_strip.cc @@ -67,7 +67,7 @@ namespace { class NewTabButton : public views::ImageButton { public: - explicit NewTabButton(TabStrip* tab_strip, views::ButtonListener* listener) + NewTabButton(TabStrip* tab_strip, views::ButtonListener* listener) : views::ImageButton(listener), tab_strip_(tab_strip) { } diff --git a/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc b/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc index 10a0123..cf646ac 100644 --- a/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc +++ b/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc @@ -68,8 +68,8 @@ void URLToRequest(const GURL& url, std::string* source_name, // calls back once the data is available. class URLRequestChromeJob : public net::URLRequestJob { public: - explicit URLRequestChromeJob(net::URLRequest* request, - ChromeURLDataManagerBackend* backend); + URLRequestChromeJob(net::URLRequest* request, + ChromeURLDataManagerBackend* backend); // net::URLRequestJob implementation. virtual void Start() OVERRIDE; diff --git a/chrome/browser/ui/window_sizer.cc b/chrome/browser/ui/window_sizer.cc index 24a19cb..bcd321c 100644 --- a/chrome/browser/ui/window_sizer.cc +++ b/chrome/browser/ui/window_sizer.cc @@ -17,9 +17,8 @@ // and persistent state from the browser window and the user's profile. class DefaultStateProvider : public WindowSizer::StateProvider { public: - explicit DefaultStateProvider(const std::string& app_name, - const Browser* browser) : app_name_(app_name), - browser_(browser) { + DefaultStateProvider(const std::string& app_name, const Browser* browser) + : app_name_(app_name), browser_(browser) { } // Overridden from WindowSizer::StateProvider: |