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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame.h

Issue 2753813003: Fix theme change paint issue on linux. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_FRAME_BROWSER_FRAME_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Overridden from views::Widget: 101 // Overridden from views::Widget:
102 views::internal::RootView* CreateRootView() override; 102 views::internal::RootView* CreateRootView() override;
103 views::NonClientFrameView* CreateNonClientFrameView() override; 103 views::NonClientFrameView* CreateNonClientFrameView() override;
104 bool GetAccelerator(int command_id, 104 bool GetAccelerator(int command_id,
105 ui::Accelerator* accelerator) const override; 105 ui::Accelerator* accelerator) const override;
106 const ui::ThemeProvider* GetThemeProvider() const override; 106 const ui::ThemeProvider* GetThemeProvider() const override;
107 const ui::NativeTheme* GetNativeTheme() const override; 107 const ui::NativeTheme* GetNativeTheme() const override;
108 void SchedulePaintInRect(const gfx::Rect& rect) override; 108 void SchedulePaintInRect(const gfx::Rect& rect) override;
109 void OnNativeWidgetActivationChanged(bool active) override; 109 void OnNativeWidgetActivationChanged(bool active) override;
110 void OnNativeWidgetWorkspaceChanged() override; 110 void OnNativeWidgetWorkspaceChanged() override;
111 void OnNativeThemeUpdated(ui::NativeTheme* observed_theme) override;
111 112
112 // Overridden from views::ContextMenuController: 113 // Overridden from views::ContextMenuController:
113 void ShowContextMenuForView(views::View* source, 114 void ShowContextMenuForView(views::View* source,
114 const gfx::Point& p, 115 const gfx::Point& p,
115 ui::MenuSourceType source_type) override; 116 ui::MenuSourceType source_type) override;
116 117
117 views::View* GetNewAvatarMenuButton(); 118 views::View* GetNewAvatarMenuButton();
118 119
119 // Returns the menu model. BrowserFrame owns the returned model. 120 // Returns the menu model. BrowserFrame owns the returned model.
120 // Note that in multi user mode this will upon each call create a new model. 121 // Note that in multi user mode this will upon each call create a new model.
(...skipping 21 matching lines...) Expand all
142 // Used to show the system menu. Only used if 143 // Used to show the system menu. Only used if
143 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. 144 // NativeBrowserFrame::UsesNativeSystemMenu() returns false.
144 std::unique_ptr<views::MenuRunner> menu_runner_; 145 std::unique_ptr<views::MenuRunner> menu_runner_;
145 146
146 std::unique_ptr<ui::EventHandler> browser_command_handler_; 147 std::unique_ptr<ui::EventHandler> browser_command_handler_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); 149 DISALLOW_COPY_AND_ASSIGN(BrowserFrame);
149 }; 150 };
150 151
151 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 152 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698