| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow | 24 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow |
| 25 // subclasses to customize the InitParams that would be passed. | 25 // subclasses to customize the InitParams that would be passed. |
| 26 virtual void OnBeforeWidgetInit( | 26 virtual void OnBeforeWidgetInit( |
| 27 const extensions::AppWindow::CreateParams& create_params, | 27 const extensions::AppWindow::CreateParams& create_params, |
| 28 views::Widget::InitParams* init_params, | 28 views::Widget::InitParams* init_params, |
| 29 views::Widget* widget); | 29 views::Widget* widget); |
| 30 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow | 30 // Called before views::Widget::Init() in InitializeDefaultWindow() to allow |
| 31 // subclasses to customize the InitParams that would be passed. | 31 // subclasses to customize the InitParams that would be passed. |
| 32 virtual void OnBeforePanelWidgetInit(bool use_default_bounds, | 32 virtual void OnBeforePanelWidgetInit(views::Widget::InitParams* init_params, |
| 33 views::Widget::InitParams* init_params, | |
| 34 views::Widget* widget); | 33 views::Widget* widget); |
| 35 | 34 |
| 36 virtual void InitializeDefaultWindow( | 35 virtual void InitializeDefaultWindow( |
| 37 const extensions::AppWindow::CreateParams& create_params); | 36 const extensions::AppWindow::CreateParams& create_params); |
| 38 virtual void InitializePanelWindow( | 37 virtual void InitializePanelWindow( |
| 39 const extensions::AppWindow::CreateParams& create_params); | 38 const extensions::AppWindow::CreateParams& create_params); |
| 40 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame(); | 39 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame(); |
| 41 virtual views::NonClientFrameView* CreateNonStandardAppFrame() = 0; | 40 virtual views::NonClientFrameView* CreateNonStandardAppFrame() = 0; |
| 42 | 41 |
| 43 // ui::BaseWindow implementation. | 42 // ui::BaseWindow implementation. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 gfx::Size preferred_size_; | 80 gfx::Size preferred_size_; |
| 82 | 81 |
| 83 // The class that registers for keyboard shortcuts for extension commands. | 82 // The class that registers for keyboard shortcuts for extension commands. |
| 84 std::unique_ptr<ExtensionKeybindingRegistryViews> | 83 std::unique_ptr<ExtensionKeybindingRegistryViews> |
| 85 extension_keybinding_registry_; | 84 extension_keybinding_registry_; |
| 86 | 85 |
| 87 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); | 86 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ |
| OLD | NEW |