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

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

Issue 8827011: Panel strip refactor cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual bool PreHandlePanelKeyboardEvent( 52 virtual bool PreHandlePanelKeyboardEvent(
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 63
63 // These sizes are in screen coordinates. 64 // These sizes are in screen coordinates.
64 virtual gfx::Size WindowSizeFromContentSize( 65 virtual gfx::Size WindowSizeFromContentSize(
65 const gfx::Size& content_size) const OVERRIDE; 66 const gfx::Size& content_size) const OVERRIDE;
66 virtual gfx::Size ContentSizeFromWindowSize( 67 virtual gfx::Size ContentSizeFromWindowSize(
67 const gfx::Size& window_size) const OVERRIDE; 68 const gfx::Size& window_size) const OVERRIDE;
68 virtual int TitleOnlyHeight() const OVERRIDE; 69 virtual int TitleOnlyHeight() const OVERRIDE;
69 70
70 // Overridden from TabStripModelObserver. 71 // Overridden from TabStripModelObserver.
71 virtual void TabInsertedAt(TabContentsWrapper* contents, 72 virtual void TabInsertedAt(TabContentsWrapper* contents,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 gfx::Rect bounds_; 109 gfx::Rect bounds_;
109 110
110 PanelWindowControllerCocoa* controller_; // Weak, owns us. 111 PanelWindowControllerCocoa* controller_; // Weak, owns us.
111 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. 112 bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
112 bool has_find_bar_; // Find bar should only be created once per panel. 113 bool has_find_bar_; // Find bar should only be created once per panel.
113 114
114 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 115 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
115 }; 116 };
116 117
117 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 118 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view_browsertest.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