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

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

Issue 8681025: Add methods needed for overflow panels to NativePanel interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void PanelPaste() OVERRIDE; 48 virtual void PanelPaste() OVERRIDE;
49 virtual void DrawAttention() OVERRIDE; 49 virtual void DrawAttention() OVERRIDE;
50 virtual bool IsDrawingAttention() const OVERRIDE; 50 virtual bool IsDrawingAttention() const OVERRIDE;
51 virtual bool PreHandlePanelKeyboardEvent( 51 virtual bool PreHandlePanelKeyboardEvent(
52 const NativeWebKeyboardEvent& event, 52 const NativeWebKeyboardEvent& event,
53 bool* is_keyboard_shortcut) OVERRIDE; 53 bool* is_keyboard_shortcut) OVERRIDE;
54 virtual void HandlePanelKeyboardEvent( 54 virtual void HandlePanelKeyboardEvent(
55 const NativeWebKeyboardEvent& event) OVERRIDE; 55 const NativeWebKeyboardEvent& event) OVERRIDE;
56 virtual Browser* GetPanelBrowser() const OVERRIDE; 56 virtual Browser* GetPanelBrowser() const OVERRIDE;
57 virtual void DestroyPanelBrowser() OVERRIDE; 57 virtual void DestroyPanelBrowser() OVERRIDE;
58 virtual gfx::Size IconOnlySize() const OVERRIDE;
59 virtual void EnsurePanelFullyVisible() OVERRIDE;
58 60
59 // These sizes are in screen coordinates. 61 // These sizes are in screen coordinates.
60 virtual gfx::Size WindowSizeFromContentSize( 62 virtual gfx::Size WindowSizeFromContentSize(
61 const gfx::Size& content_size) const OVERRIDE; 63 const gfx::Size& content_size) const OVERRIDE;
62 virtual gfx::Size ContentSizeFromWindowSize( 64 virtual gfx::Size ContentSizeFromWindowSize(
63 const gfx::Size& window_size) const OVERRIDE; 65 const gfx::Size& window_size) const OVERRIDE;
64 virtual int TitleOnlyHeight() const OVERRIDE; 66 virtual int TitleOnlyHeight() const OVERRIDE;
65 67
66 // Overridden from TabStripModelObserver. 68 // Overridden from TabStripModelObserver.
67 virtual void TabInsertedAt(TabContentsWrapper* contents, 69 virtual void TabInsertedAt(TabContentsWrapper* contents,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 gfx::Rect bounds_; 104 gfx::Rect bounds_;
103 105
104 PanelWindowControllerCocoa* controller_; // Weak, owns us. 106 PanelWindowControllerCocoa* controller_; // Weak, owns us.
105 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. 107 bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
106 bool has_find_bar_; // Find bar should only be created once per panel. 108 bool has_find_bar_; // Find bar should only be created once per panel.
107 109
108 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 110 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
109 }; 111 };
110 112
111 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 113 #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