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

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

Issue 2074643003: MacViews: Views accelerators table should match the Cocoa one. (Closed) Base URL: ssh://bitbucket.browser.yandex-team.ru/chromium/src.git@master
Patch Set: Fix review issues. Created 4 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) 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"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 12 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
13 #include "ui/views/context_menu_controller.h" 13 #include "ui/views/context_menu_controller.h"
14 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
15 15
16 class AvatarMenuButton; 16 class AvatarMenuButton;
17 class BrowserRootView; 17 class BrowserRootView;
18 class BrowserView; 18 class BrowserView;
19 class NativeBrowserFrame; 19 class NativeBrowserFrame;
20 class NonClientFrameView; 20 class NonClientFrameView;
21 class SystemMenuModelBuilder; 21 class SystemMenuModelBuilder;
22 22
23 namespace content {
24 struct NativeWebKeyboardEvent;
25 }
26
23 namespace gfx { 27 namespace gfx {
24 class FontList; 28 class FontList;
25 class Rect; 29 class Rect;
26 } 30 }
27 31
28 namespace ui { 32 namespace ui {
29 class EventHandler; 33 class EventHandler;
30 class MenuModel; 34 class MenuModel;
31 } 35 }
32 36
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // native frame. Only applicable to Windows. 94 // native frame. Only applicable to Windows.
91 bool CustomDrawSystemTitlebar() const; 95 bool CustomDrawSystemTitlebar() const;
92 96
93 // Returns true when the window placement should be saved. 97 // Returns true when the window placement should be saved.
94 bool ShouldSaveWindowPlacement() const; 98 bool ShouldSaveWindowPlacement() const;
95 99
96 // Retrieves the window placement (show state and bounds) for restoring. 100 // Retrieves the window placement (show state and bounds) for restoring.
97 void GetWindowPlacement(gfx::Rect* bounds, 101 void GetWindowPlacement(gfx::Rect* bounds,
98 ui::WindowShowState* show_state) const; 102 ui::WindowShowState* show_state) const;
99 103
104 // Returns true if the |event| was handled by the platform implementation.
105 bool PreHandleKeyboardEvent(const content::NativeWebKeyboardEvent& event);
106
107 // Returns true if the |event| was handled by the platform implementation.
108 bool HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event);
109
100 // Called when BrowserView creates all it's child views. 110 // Called when BrowserView creates all it's child views.
101 void OnBrowserViewInitViewsComplete(); 111 void OnBrowserViewInitViewsComplete();
102 112
103 // Overridden from views::Widget: 113 // Overridden from views::Widget:
104 views::internal::RootView* CreateRootView() override; 114 views::internal::RootView* CreateRootView() override;
105 views::NonClientFrameView* CreateNonClientFrameView() override; 115 views::NonClientFrameView* CreateNonClientFrameView() override;
106 bool GetAccelerator(int command_id, 116 bool GetAccelerator(int command_id,
107 ui::Accelerator* accelerator) const override; 117 ui::Accelerator* accelerator) const override;
108 const ui::ThemeProvider* GetThemeProvider() const override; 118 const ui::ThemeProvider* GetThemeProvider() const override;
109 const ui::NativeTheme* GetNativeTheme() const override; 119 const ui::NativeTheme* GetNativeTheme() const override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // NativeBrowserFrame::UsesNativeSystemMenu() returns false. 155 // NativeBrowserFrame::UsesNativeSystemMenu() returns false.
146 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_; 156 std::unique_ptr<views::MenuModelAdapter> menu_model_adapter_;
147 std::unique_ptr<views::MenuRunner> menu_runner_; 157 std::unique_ptr<views::MenuRunner> menu_runner_;
148 158
149 std::unique_ptr<ui::EventHandler> browser_command_handler_; 159 std::unique_ptr<ui::EventHandler> browser_command_handler_;
150 160
151 DISALLOW_COPY_AND_ASSIGN(BrowserFrame); 161 DISALLOW_COPY_AND_ASSIGN(BrowserFrame);
152 }; 162 };
153 163
154 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_ 164 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698