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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clang build fix. After commit/revert. Created 9 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) 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 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_nsobject.h" 9 #include "base/memory/scoped_nsobject.h"
10 #include "chrome/browser/ui/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual void HandleKeyboardEvent( 90 virtual void HandleKeyboardEvent(
91 const NativeWebKeyboardEvent& event) OVERRIDE; 91 const NativeWebKeyboardEvent& event) OVERRIDE;
92 virtual void ShowCreateWebAppShortcutsDialog( 92 virtual void ShowCreateWebAppShortcutsDialog(
93 TabContentsWrapper* tab_contents) OVERRIDE; 93 TabContentsWrapper* tab_contents) OVERRIDE;
94 virtual void ShowCreateChromeAppShortcutsDialog( 94 virtual void ShowCreateChromeAppShortcutsDialog(
95 Profile* profile, const Extension* app) OVERRIDE; 95 Profile* profile, const Extension* app) OVERRIDE;
96 virtual void Cut() OVERRIDE; 96 virtual void Cut() OVERRIDE;
97 virtual void Copy() OVERRIDE; 97 virtual void Copy() OVERRIDE;
98 virtual void Paste() OVERRIDE; 98 virtual void Paste() OVERRIDE;
99 virtual void ToggleTabStripMode() OVERRIDE; 99 virtual void ToggleTabStripMode() OVERRIDE;
100 virtual void ToggleUseCompactNavigationBar() OVERRIDE;
100 virtual void OpenTabpose() OVERRIDE; 101 virtual void OpenTabpose() OVERRIDE;
101 virtual void PrepareForInstant() OVERRIDE; 102 virtual void PrepareForInstant() OVERRIDE;
102 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; 103 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE;
103 virtual void HideInstant(bool instant_is_active) OVERRIDE; 104 virtual void HideInstant(bool instant_is_active) OVERRIDE;
104 virtual gfx::Rect GetInstantBounds() OVERRIDE; 105 virtual gfx::Rect GetInstantBounds() OVERRIDE;
105 virtual WindowOpenDisposition GetDispositionForPopupBounds( 106 virtual WindowOpenDisposition GetDispositionForPopupBounds(
106 const gfx::Rect& bounds) OVERRIDE; 107 const gfx::Rect& bounds) OVERRIDE;
107 108
108 protected: 109 protected:
109 virtual void DestroyBrowser() OVERRIDE; 110 virtual void DestroyBrowser() OVERRIDE;
110 111
111 private: 112 private:
112 friend class PanelBrowserWindowCocoaTest; 113 friend class PanelBrowserWindowCocoaTest;
113 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, CreateClose); 114 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, CreateClose);
114 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, NativeBounds); 115 FRIEND_TEST_ALL_PREFIXES(PanelBrowserWindowCocoaTest, NativeBounds);
115 116
116 bool isClosed(); 117 bool isClosed();
117 NSRect ConvertCoordinatesToCocoa(const gfx::Rect& bounds); 118 NSRect ConvertCoordinatesToCocoa(const gfx::Rect& bounds);
118 119
119 Panel* panel_; // weak, owns us. 120 Panel* panel_; // weak, owns us.
120 scoped_nsobject<PanelWindowControllerCocoa> controller_; 121 scoped_nsobject<PanelWindowControllerCocoa> controller_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); 123 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa);
123 }; 124 };
124 125
125 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ 126 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_
126 127
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.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