Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(812)

Side by Side Diff: chrome/browser/ui/gtk/overflow_button.h

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_
6 #define CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_ 6 #define CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h"
9 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
11 #include "ui/base/gtk/owned_widget_gtk.h" 12 #include "ui/base/gtk/owned_widget_gtk.h"
12 13
13 typedef struct _GtkWidget GtkWidget; 14 typedef struct _GtkWidget GtkWidget;
14 class Profile; 15 class Profile;
15 16
16 // An overflow chevron button. The button itself is a plain gtk_chrome_button, 17 // An overflow chevron button. The button itself is a plain gtk_chrome_button,
17 // and this class handles theming it. 18 // and this class handles theming it.
18 class OverflowButton : public content::NotificationObserver { 19 class OverflowButton : public content::NotificationObserver {
19 public: 20 public:
20 explicit OverflowButton(Profile* profile); 21 explicit OverflowButton(Profile* profile);
21 virtual ~OverflowButton(); 22 virtual ~OverflowButton();
22 23
23 GtkWidget* widget() { return widget_.get(); } 24 GtkWidget* widget() { return widget_.get(); }
24 25
25 private: 26 private:
26 // content::NotificationObserver implementation. 27 // content::NotificationObserver implementation.
27 virtual void Observe(int type, 28 virtual void Observe(int type,
28 const content::NotificationSource& source, 29 const content::NotificationSource& source,
29 const content::NotificationDetails& details); 30 const content::NotificationDetails& details) OVERRIDE;
30 31
31 ui::OwnedWidgetGtk widget_; 32 ui::OwnedWidgetGtk widget_;
32 33
33 Profile* profile_; 34 Profile* profile_;
34 35
35 content::NotificationRegistrar registrar_; 36 content::NotificationRegistrar registrar_;
36 }; 37 };
37 38
38 #endif // CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_ 39 #endif // CHROME_BROWSER_UI_GTK_OVERFLOW_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h ('k') | chrome/browser/ui/gtk/reload_button_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698