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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.h

Issue 10180011: Support painting panels with chromium themes on GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 8 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 | Annotate | Revision Log
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_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void DrawAttention(bool draw_attention) OVERRIDE; 54 virtual void DrawAttention(bool draw_attention) OVERRIDE;
55 virtual bool IsDrawingAttention() const OVERRIDE; 55 virtual bool IsDrawingAttention() const OVERRIDE;
56 virtual bool PreHandlePanelKeyboardEvent( 56 virtual bool PreHandlePanelKeyboardEvent(
57 const NativeWebKeyboardEvent& event, 57 const NativeWebKeyboardEvent& event,
58 bool* is_keyboard_shortcut) OVERRIDE; 58 bool* is_keyboard_shortcut) OVERRIDE;
59 virtual void HandlePanelKeyboardEvent( 59 virtual void HandlePanelKeyboardEvent(
60 const NativeWebKeyboardEvent& event) OVERRIDE; 60 const NativeWebKeyboardEvent& event) OVERRIDE;
61 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; 61 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
62 virtual Browser* GetPanelBrowser() const OVERRIDE; 62 virtual Browser* GetPanelBrowser() const OVERRIDE;
63 virtual void DestroyPanelBrowser() OVERRIDE; 63 virtual void DestroyPanelBrowser() OVERRIDE;
64 virtual gfx::Size IconOnlySize() const OVERRIDE;
65 virtual void EnsurePanelFullyVisible() OVERRIDE; 64 virtual void EnsurePanelFullyVisible() OVERRIDE;
66 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; 65 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE;
67 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; 66 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE;
68 virtual void EnableResizeByMouse(bool enable) OVERRIDE; 67 virtual void EnableResizeByMouse(bool enable) OVERRIDE;
69 68
70 // These sizes are in screen coordinates. 69 // These sizes are in screen coordinates.
71 virtual gfx::Size WindowSizeFromContentSize( 70 virtual gfx::Size WindowSizeFromContentSize(
72 const gfx::Size& content_size) const OVERRIDE; 71 const gfx::Size& content_size) const OVERRIDE;
73 virtual gfx::Size ContentSizeFromWindowSize( 72 virtual gfx::Size ContentSizeFromWindowSize(
74 const gfx::Size& window_size) const OVERRIDE; 73 const gfx::Size& window_size) const OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // window over other application windows due to panels having a higher 134 // window over other application windows due to panels having a higher
136 // priority NSWindowLevel, so we distinguish between the two scenarios. 135 // priority NSWindowLevel, so we distinguish between the two scenarios.
137 bool activation_requested_by_browser_; 136 bool activation_requested_by_browser_;
138 137
139 content::NotificationRegistrar registrar_; 138 content::NotificationRegistrar registrar_;
140 139
141 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 140 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
142 }; 141 };
143 142
144 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 143 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view.cc ('k') | chrome/browser/ui/panels/panel_browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698