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

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

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 9 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const NativeWebKeyboardEvent& event, 53 const NativeWebKeyboardEvent& event,
54 bool* is_keyboard_shortcut) OVERRIDE; 54 bool* is_keyboard_shortcut) OVERRIDE;
55 virtual void HandlePanelKeyboardEvent( 55 virtual void HandlePanelKeyboardEvent(
56 const NativeWebKeyboardEvent& event) OVERRIDE; 56 const NativeWebKeyboardEvent& event) OVERRIDE;
57 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; 57 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
58 virtual Browser* GetPanelBrowser() const OVERRIDE; 58 virtual Browser* GetPanelBrowser() const OVERRIDE;
59 virtual void DestroyPanelBrowser() OVERRIDE; 59 virtual void DestroyPanelBrowser() OVERRIDE;
60 virtual gfx::Size IconOnlySize() const OVERRIDE; 60 virtual gfx::Size IconOnlySize() const OVERRIDE;
61 virtual void EnsurePanelFullyVisible() OVERRIDE; 61 virtual void EnsurePanelFullyVisible() OVERRIDE;
62 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; 62 virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE;
63 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE;
63 64
64 // These sizes are in screen coordinates. 65 // These sizes are in screen coordinates.
65 virtual gfx::Size WindowSizeFromContentSize( 66 virtual gfx::Size WindowSizeFromContentSize(
66 const gfx::Size& content_size) const OVERRIDE; 67 const gfx::Size& content_size) const OVERRIDE;
67 virtual gfx::Size ContentSizeFromWindowSize( 68 virtual gfx::Size ContentSizeFromWindowSize(
68 const gfx::Size& window_size) const OVERRIDE; 69 const gfx::Size& window_size) const OVERRIDE;
69 virtual int TitleOnlyHeight() const OVERRIDE; 70 virtual int TitleOnlyHeight() const OVERRIDE;
70 71
71 // Overridden from TabStripModelObserver. 72 // Overridden from TabStripModelObserver.
72 virtual void TabInsertedAt(TabContentsWrapper* contents, 73 virtual void TabInsertedAt(TabContentsWrapper* contents,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 gfx::Rect bounds_; 110 gfx::Rect bounds_;
110 111
111 PanelWindowControllerCocoa* controller_; // Weak, owns us. 112 PanelWindowControllerCocoa* controller_; // Weak, owns us.
112 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. 113 bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
113 bool has_find_bar_; // Find bar should only be created once per panel. 114 bool has_find_bar_; // Find bar should only be created once per panel.
114 115
115 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 116 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
116 }; 117 };
117 118
118 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 119 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698