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

Side by Side Diff: chrome/browser/ui/libgtk2ui/gtk2_ui.h

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_LIBGTK2UI_GTK2_UI_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // Draws the GTK button border for state |gtk_state| onto a bitmap. 58 // Draws the GTK button border for state |gtk_state| onto a bitmap.
59 SkBitmap DrawGtkButtonBorder(int gtk_state, 59 SkBitmap DrawGtkButtonBorder(int gtk_state,
60 bool focused, 60 bool focused,
61 bool call_to_action, 61 bool call_to_action,
62 int width, 62 int width,
63 int height) const; 63 int height) const;
64 64
65 // ui::LinuxInputMethodContextFactory: 65 // ui::LinuxInputMethodContextFactory:
66 virtual scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext( 66 virtual scoped_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext(
67 ui::LinuxInputMethodContextDelegate* delegate) const OVERRIDE; 67 ui::LinuxInputMethodContextDelegate* delegate) const override;
68 68
69 // gfx::LinuxFontDelegate: 69 // gfx::LinuxFontDelegate:
70 virtual gfx::FontRenderParams GetDefaultFontRenderParams() const OVERRIDE; 70 virtual gfx::FontRenderParams GetDefaultFontRenderParams() const override;
71 virtual scoped_ptr<gfx::ScopedPangoFontDescription> 71 virtual scoped_ptr<gfx::ScopedPangoFontDescription>
72 GetDefaultPangoFontDescription() const OVERRIDE; 72 GetDefaultPangoFontDescription() const override;
73 virtual double GetFontDPI() const OVERRIDE; 73 virtual double GetFontDPI() const override;
74 74
75 // ui::LinuxShellDialog: 75 // ui::LinuxShellDialog:
76 virtual ui::SelectFileDialog* CreateSelectFileDialog( 76 virtual ui::SelectFileDialog* CreateSelectFileDialog(
77 ui::SelectFileDialog::Listener* listener, 77 ui::SelectFileDialog::Listener* listener,
78 ui::SelectFilePolicy* policy) const OVERRIDE; 78 ui::SelectFilePolicy* policy) const override;
79 79
80 // ui::LinuxUI: 80 // ui::LinuxUI:
81 virtual void Initialize() OVERRIDE; 81 virtual void Initialize() override;
82 virtual gfx::Image GetThemeImageNamed(int id) const OVERRIDE; 82 virtual gfx::Image GetThemeImageNamed(int id) const override;
83 virtual bool GetColor(int id, SkColor* color) const OVERRIDE; 83 virtual bool GetColor(int id, SkColor* color) const override;
84 virtual bool HasCustomImage(int id) const OVERRIDE; 84 virtual bool HasCustomImage(int id) const override;
85 virtual SkColor GetFocusRingColor() const OVERRIDE; 85 virtual SkColor GetFocusRingColor() const override;
86 virtual SkColor GetThumbActiveColor() const OVERRIDE; 86 virtual SkColor GetThumbActiveColor() const override;
87 virtual SkColor GetThumbInactiveColor() const OVERRIDE; 87 virtual SkColor GetThumbInactiveColor() const override;
88 virtual SkColor GetTrackColor() const OVERRIDE; 88 virtual SkColor GetTrackColor() const override;
89 virtual SkColor GetActiveSelectionBgColor() const OVERRIDE; 89 virtual SkColor GetActiveSelectionBgColor() const override;
90 virtual SkColor GetActiveSelectionFgColor() const OVERRIDE; 90 virtual SkColor GetActiveSelectionFgColor() const override;
91 virtual SkColor GetInactiveSelectionBgColor() const OVERRIDE; 91 virtual SkColor GetInactiveSelectionBgColor() const override;
92 virtual SkColor GetInactiveSelectionFgColor() const OVERRIDE; 92 virtual SkColor GetInactiveSelectionFgColor() const override;
93 virtual double GetCursorBlinkInterval() const OVERRIDE; 93 virtual double GetCursorBlinkInterval() const override;
94 virtual ui::NativeTheme* GetNativeTheme(aura::Window* window) const OVERRIDE; 94 virtual ui::NativeTheme* GetNativeTheme(aura::Window* window) const override;
95 virtual void SetNativeThemeOverride(const NativeThemeGetter& callback) 95 virtual void SetNativeThemeOverride(const NativeThemeGetter& callback)
96 OVERRIDE; 96 override;
97 virtual bool GetDefaultUsesSystemTheme() const OVERRIDE; 97 virtual bool GetDefaultUsesSystemTheme() const override;
98 virtual void SetDownloadCount(int count) const OVERRIDE; 98 virtual void SetDownloadCount(int count) const override;
99 virtual void SetProgressFraction(float percentage) const OVERRIDE; 99 virtual void SetProgressFraction(float percentage) const override;
100 virtual bool IsStatusIconSupported() const OVERRIDE; 100 virtual bool IsStatusIconSupported() const override;
101 virtual scoped_ptr<views::StatusIconLinux> CreateLinuxStatusIcon( 101 virtual scoped_ptr<views::StatusIconLinux> CreateLinuxStatusIcon(
102 const gfx::ImageSkia& image, 102 const gfx::ImageSkia& image,
103 const base::string16& tool_tip) const OVERRIDE; 103 const base::string16& tool_tip) const override;
104 virtual gfx::Image GetIconForContentType( 104 virtual gfx::Image GetIconForContentType(
105 const std::string& content_type, int size) const OVERRIDE; 105 const std::string& content_type, int size) const override;
106 virtual scoped_ptr<views::Border> CreateNativeBorder( 106 virtual scoped_ptr<views::Border> CreateNativeBorder(
107 views::LabelButton* owning_button, 107 views::LabelButton* owning_button,
108 scoped_ptr<views::LabelButtonBorder> border) OVERRIDE; 108 scoped_ptr<views::LabelButtonBorder> border) override;
109 virtual void AddWindowButtonOrderObserver( 109 virtual void AddWindowButtonOrderObserver(
110 views::WindowButtonOrderObserver* observer) OVERRIDE; 110 views::WindowButtonOrderObserver* observer) override;
111 virtual void RemoveWindowButtonOrderObserver( 111 virtual void RemoveWindowButtonOrderObserver(
112 views::WindowButtonOrderObserver* observer) OVERRIDE; 112 views::WindowButtonOrderObserver* observer) override;
113 virtual bool UnityIsRunning() OVERRIDE; 113 virtual bool UnityIsRunning() override;
114 virtual NonClientMiddleClickAction GetNonClientMiddleClickAction() OVERRIDE; 114 virtual NonClientMiddleClickAction GetNonClientMiddleClickAction() override;
115 virtual void NotifyWindowManagerStartupComplete() OVERRIDE; 115 virtual void NotifyWindowManagerStartupComplete() override;
116 116
117 // ui::TextEditKeybindingDelegate: 117 // ui::TextEditKeybindingDelegate:
118 virtual bool MatchEvent( 118 virtual bool MatchEvent(
119 const ui::Event& event, 119 const ui::Event& event,
120 std::vector<ui::TextEditCommandAuraLinux>* commands) OVERRIDE; 120 std::vector<ui::TextEditCommandAuraLinux>* commands) override;
121 121
122 private: 122 private:
123 typedef std::map<int, SkColor> ColorMap; 123 typedef std::map<int, SkColor> ColorMap;
124 typedef std::map<int, color_utils::HSL> TintMap; 124 typedef std::map<int, color_utils::HSL> TintMap;
125 typedef std::map<int, gfx::Image> ImageCache; 125 typedef std::map<int, gfx::Image> ImageCache;
126 126
127 // This method returns the colors webkit will use for the scrollbars. When no 127 // This method returns the colors webkit will use for the scrollbars. When no
128 // colors are specified by the GTK+ theme, this function averages of the 128 // colors are specified by the GTK+ theme, this function averages of the
129 // thumb part and of the track colors. 129 // thumb part and of the track colors.
130 void GetScrollbarColors(GdkColor* thumb_active_color, 130 void GetScrollbarColors(GdkColor* thumb_active_color,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } // namespace libgtk2ui 263 } // namespace libgtk2ui
264 264
265 // Access point to the GTK2 desktop system. This should be the only symbol that 265 // Access point to the GTK2 desktop system. This should be the only symbol that
266 // is exported in the library; everything else should be used through the 266 // is exported in the library; everything else should be used through the
267 // interface, because eventually this .so will be loaded through dlopen at 267 // interface, because eventually this .so will be loaded through dlopen at
268 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or 268 // runtime so our main binary can conditionally load GTK2 or GTK3 or EFL or
269 // QT or whatever. 269 // QT or whatever.
270 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI(); 270 LIBGTK2UI_EXPORT views::LinuxUI* BuildGtk2UI();
271 271
272 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_ 272 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_status_icon.h ('k') | chrome/browser/ui/libgtk2ui/native_theme_gtk2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698