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

Side by Side Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.h

Issue 1053303003: [MacViews] Implement colored window frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 7 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 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 23 matching lines...) Expand all
34 // subclasses to customize the InitParams that would be passed. 34 // subclasses to customize the InitParams that would be passed.
35 virtual void OnBeforePanelWidgetInit(bool use_default_bounds, 35 virtual void OnBeforePanelWidgetInit(bool use_default_bounds,
36 views::Widget::InitParams* init_params, 36 views::Widget::InitParams* init_params,
37 views::Widget* widget); 37 views::Widget* widget);
38 38
39 virtual void InitializeDefaultWindow( 39 virtual void InitializeDefaultWindow(
40 const extensions::AppWindow::CreateParams& create_params); 40 const extensions::AppWindow::CreateParams& create_params);
41 virtual void InitializePanelWindow( 41 virtual void InitializePanelWindow(
42 const extensions::AppWindow::CreateParams& create_params); 42 const extensions::AppWindow::CreateParams& create_params);
43 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame(); 43 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame();
44 virtual apps::AppWindowFrameView* CreateNonStandardAppFrame(); 44 virtual views::NonClientFrameView* CreateNonStandardAppFrame() = 0;
45 45
46 // ui::BaseWindow implementation. 46 // ui::BaseWindow implementation.
47 gfx::Rect GetRestoredBounds() const override; 47 gfx::Rect GetRestoredBounds() const override;
48 ui::WindowShowState GetRestoredState() const override; 48 ui::WindowShowState GetRestoredState() const override;
49 bool IsAlwaysOnTop() const override; 49 bool IsAlwaysOnTop() const override;
50 50
51 // WidgetDelegate implementation. 51 // WidgetDelegate implementation.
52 gfx::ImageSkia GetWindowAppIcon() override; 52 gfx::ImageSkia GetWindowAppIcon() override;
53 gfx::ImageSkia GetWindowIcon() override; 53 gfx::ImageSkia GetWindowIcon() override;
54 views::NonClientFrameView* CreateNonClientFrameView( 54 views::NonClientFrameView* CreateNonClientFrameView(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // The class that registers for keyboard shortcuts for extension commands. 90 // The class that registers for keyboard shortcuts for extension commands.
91 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; 91 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_;
92 92
93 // Used to capture all keyboard events including task switching sequence. 93 // Used to capture all keyboard events including task switching sequence.
94 scoped_ptr<DesktopKeyboardCapture> desktop_keyboard_capture_; 94 scoped_ptr<DesktopKeyboardCapture> desktop_keyboard_capture_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews); 96 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews);
97 }; 97 };
98 98
99 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_ 99 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698