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

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: Created 5 years, 8 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 22 matching lines...) Expand all
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(views::Widget::InitParams* init_params,
36 views::Widget* widget); 36 views::Widget* widget);
37 37
38 virtual void InitializeDefaultWindow( 38 virtual void InitializeDefaultWindow(
39 const extensions::AppWindow::CreateParams& create_params); 39 const extensions::AppWindow::CreateParams& create_params);
40 virtual void InitializePanelWindow( 40 virtual void InitializePanelWindow(
41 const extensions::AppWindow::CreateParams& create_params); 41 const extensions::AppWindow::CreateParams& create_params);
42 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame(); 42 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame();
43 virtual apps::AppWindowFrameView* CreateNonStandardAppFrame(); 43 virtual views::NonClientFrameView* CreateNonStandardAppFrame();
44 44
45 // ui::BaseWindow implementation. 45 // ui::BaseWindow implementation.
46 gfx::Rect GetRestoredBounds() const override; 46 gfx::Rect GetRestoredBounds() const override;
47 ui::WindowShowState GetRestoredState() const override; 47 ui::WindowShowState GetRestoredState() const override;
48 bool IsAlwaysOnTop() const override; 48 bool IsAlwaysOnTop() const override;
49 49
50 // WidgetDelegate implementation. 50 // WidgetDelegate implementation.
51 gfx::ImageSkia GetWindowAppIcon() override; 51 gfx::ImageSkia GetWindowAppIcon() override;
52 gfx::ImageSkia GetWindowIcon() override; 52 gfx::ImageSkia GetWindowIcon() override;
53 views::NonClientFrameView* CreateNonClientFrameView( 53 views::NonClientFrameView* CreateNonClientFrameView(
(...skipping 36 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