OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "extensions/components/native_app_window/native_app_window_views.h" | 9 #include "extensions/components/native_app_window/native_app_window_views.h" |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 protected: | 26 protected: |
27 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow | 27 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow |
28 // subclasses to customize the InitParams that would be passed. | 28 // subclasses to customize the InitParams that would be passed. |
29 virtual void OnBeforeWidgetInit( | 29 virtual void OnBeforeWidgetInit( |
30 const extensions::AppWindow::CreateParams& create_params, | 30 const extensions::AppWindow::CreateParams& create_params, |
31 views::Widget::InitParams* init_params, | 31 views::Widget::InitParams* init_params, |
32 views::Widget* widget); | 32 views::Widget* widget); |
33 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow | 33 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow |
34 // subclasses to customize the InitParams that would be passed. | 34 // subclasses to customize the InitParams that would be passed. |
35 virtual void OnBeforePanelWidgetInit(views::Widget::InitParams* init_params, | 35 virtual void OnBeforePanelWidgetInit(bool use_default_bounds, |
| 36 views::Widget::InitParams* init_params, |
36 views::Widget* widget); | 37 views::Widget* widget); |
37 | 38 |
38 virtual void InitializeDefaultWindow( | 39 virtual void InitializeDefaultWindow( |
39 const extensions::AppWindow::CreateParams& create_params); | 40 const extensions::AppWindow::CreateParams& create_params); |
40 virtual void InitializePanelWindow( | 41 virtual void InitializePanelWindow( |
41 const extensions::AppWindow::CreateParams& create_params); | 42 const extensions::AppWindow::CreateParams& create_params); |
42 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame(); | 43 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame(); |
43 virtual apps::AppWindowFrameView* CreateNonStandardAppFrame(); | 44 virtual apps::AppWindowFrameView* CreateNonStandardAppFrame(); |
44 | 45 |
45 // ui::BaseWindow implementation. | 46 // ui::BaseWindow implementation. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // The class that registers for keyboard shortcuts for extension commands. | 91 // The class that registers for keyboard shortcuts for extension commands. |
91 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; | 92 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; |
92 | 93 |
93 // Used to capture all keyboard events including task switching sequence. | 94 // Used to capture all keyboard events including task switching sequence. |
94 scoped_ptr<DesktopKeyboardCapture> desktop_keyboard_capture_; | 95 scoped_ptr<DesktopKeyboardCapture> desktop_keyboard_capture_; |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); | 97 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); |
97 }; | 98 }; |
98 | 99 |
99 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ |
OLD | NEW |