OLD | NEW |
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_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void EnterFullscreen( | 68 virtual void EnterFullscreen( |
69 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; | 69 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; |
70 virtual void ExitFullscreen() OVERRIDE; | 70 virtual void ExitFullscreen() OVERRIDE; |
71 virtual void UpdateFullscreenExitBubbleContent( | 71 virtual void UpdateFullscreenExitBubbleContent( |
72 const GURL& url, | 72 const GURL& url, |
73 FullscreenExitBubbleType bubble_type) OVERRIDE; | 73 FullscreenExitBubbleType bubble_type) OVERRIDE; |
74 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; | 74 virtual bool IsFullscreenBubbleVisible() const OVERRIDE; |
75 virtual LocationBar* GetLocationBar() const OVERRIDE; | 75 virtual LocationBar* GetLocationBar() const OVERRIDE; |
76 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 76 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
77 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; | 77 virtual void UpdateReloadStopState(bool is_loading, bool force) OVERRIDE; |
78 virtual void UpdateToolbar(TabContentsWrapper* contents, | 78 virtual void UpdateToolbar(TabContents* contents, |
79 bool should_restore_state) OVERRIDE; | 79 bool should_restore_state) OVERRIDE; |
80 virtual void FocusToolbar() OVERRIDE; | 80 virtual void FocusToolbar() OVERRIDE; |
81 virtual void FocusAppMenu() OVERRIDE; | 81 virtual void FocusAppMenu() OVERRIDE; |
82 virtual void FocusBookmarksToolbar() OVERRIDE; | 82 virtual void FocusBookmarksToolbar() OVERRIDE; |
83 virtual void RotatePaneFocus(bool forwards) OVERRIDE; | 83 virtual void RotatePaneFocus(bool forwards) OVERRIDE; |
84 virtual bool IsBookmarkBarVisible() const OVERRIDE; | 84 virtual bool IsBookmarkBarVisible() const OVERRIDE; |
85 virtual bool IsBookmarkBarAnimating() const OVERRIDE; | 85 virtual bool IsBookmarkBarAnimating() const OVERRIDE; |
86 virtual bool IsTabStripEditable() const OVERRIDE; | 86 virtual bool IsTabStripEditable() const OVERRIDE; |
87 virtual bool IsToolbarVisible() const OVERRIDE; | 87 virtual bool IsToolbarVisible() const OVERRIDE; |
88 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; | 88 virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE; |
(...skipping 17 matching lines...) Expand all Loading... |
106 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; | 106 virtual DownloadShelf* GetDownloadShelf() OVERRIDE; |
107 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; | 107 virtual void ConfirmBrowserCloseWithPendingDownloads() OVERRIDE; |
108 virtual void UserChangedTheme() OVERRIDE; | 108 virtual void UserChangedTheme() OVERRIDE; |
109 virtual int GetExtraRenderViewHeight() const OVERRIDE; | 109 virtual int GetExtraRenderViewHeight() const OVERRIDE; |
110 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; | 110 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; |
111 virtual void ShowPageInfo(Profile* profile, | 111 virtual void ShowPageInfo(Profile* profile, |
112 const GURL& url, | 112 const GURL& url, |
113 const content::SSLStatus& ssl, | 113 const content::SSLStatus& ssl, |
114 bool show_history) OVERRIDE; | 114 bool show_history) OVERRIDE; |
115 virtual void ShowWebsiteSettings(Profile* profile, | 115 virtual void ShowWebsiteSettings(Profile* profile, |
116 TabContentsWrapper* tab_contents_wrapper, | 116 TabContents* tab_contents, |
117 const GURL& url, | 117 const GURL& url, |
118 const content::SSLStatus& ssl, | 118 const content::SSLStatus& ssl, |
119 bool show_history) OVERRIDE; | 119 bool show_history) OVERRIDE; |
120 virtual void ShowAppMenu() OVERRIDE; | 120 virtual void ShowAppMenu() OVERRIDE; |
121 virtual bool PreHandleKeyboardEvent( | 121 virtual bool PreHandleKeyboardEvent( |
122 const content::NativeWebKeyboardEvent& event, | 122 const content::NativeWebKeyboardEvent& event, |
123 bool* is_keyboard_shortcut) OVERRIDE; | 123 bool* is_keyboard_shortcut) OVERRIDE; |
124 virtual void HandleKeyboardEvent( | 124 virtual void HandleKeyboardEvent( |
125 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 125 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
126 virtual void ShowCreateWebAppShortcutsDialog( | 126 virtual void ShowCreateWebAppShortcutsDialog( |
127 TabContentsWrapper* tab_contents) OVERRIDE; | 127 TabContents* tab_contents) OVERRIDE; |
128 virtual void ShowCreateChromeAppShortcutsDialog( | 128 virtual void ShowCreateChromeAppShortcutsDialog( |
129 Profile* profile, const extensions::Extension* app) OVERRIDE; | 129 Profile* profile, const extensions::Extension* app) OVERRIDE; |
130 virtual void Cut() OVERRIDE; | 130 virtual void Cut() OVERRIDE; |
131 virtual void Copy() OVERRIDE; | 131 virtual void Copy() OVERRIDE; |
132 virtual void Paste() OVERRIDE; | 132 virtual void Paste() OVERRIDE; |
133 #if defined(OS_MACOSX) | 133 #if defined(OS_MACOSX) |
134 virtual void OpenTabpose() OVERRIDE; | 134 virtual void OpenTabpose() OVERRIDE; |
135 virtual void EnterPresentationMode( | 135 virtual void EnterPresentationMode( |
136 const GURL& url, | 136 const GURL& url, |
137 FullscreenExitBubbleType bubble_type) OVERRIDE; | 137 FullscreenExitBubbleType bubble_type) OVERRIDE; |
138 virtual void ExitPresentationMode() OVERRIDE; | 138 virtual void ExitPresentationMode() OVERRIDE; |
139 virtual bool InPresentationMode() OVERRIDE; | 139 virtual bool InPresentationMode() OVERRIDE; |
140 #endif | 140 #endif |
141 virtual void ShowInstant(TabContentsWrapper* preview) OVERRIDE; | 141 virtual void ShowInstant(TabContents* preview) OVERRIDE; |
142 virtual void HideInstant() OVERRIDE; | 142 virtual void HideInstant() OVERRIDE; |
143 virtual gfx::Rect GetInstantBounds() OVERRIDE; | 143 virtual gfx::Rect GetInstantBounds() OVERRIDE; |
144 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 144 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
145 const gfx::Rect& bounds) OVERRIDE; | 145 const gfx::Rect& bounds) OVERRIDE; |
146 virtual FindBar* CreateFindBar() OVERRIDE; | 146 virtual FindBar* CreateFindBar() OVERRIDE; |
147 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 147 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
148 const gfx::Size& new_size) OVERRIDE; | 148 const gfx::Size& new_size) OVERRIDE; |
149 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 149 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
150 const gfx::Rect& rect) OVERRIDE; | 150 const gfx::Rect& rect) OVERRIDE; |
151 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; | 151 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE; |
152 | 152 |
153 // TabStripModelObserver overrides. | 153 // TabStripModelObserver overrides. |
154 virtual void TabInsertedAt(TabContentsWrapper* contents, | 154 virtual void TabInsertedAt(TabContents* contents, |
155 int index, | 155 int index, |
156 bool foreground) OVERRIDE; | 156 bool foreground) OVERRIDE; |
157 | 157 |
158 protected: | 158 protected: |
159 virtual void DestroyBrowser() OVERRIDE; | 159 virtual void DestroyBrowser() OVERRIDE; |
160 | 160 |
161 private: | 161 private: |
162 friend class BasePanelBrowserTest; | 162 friend class BasePanelBrowserTest; |
163 friend class PanelBrowserWindowCocoaTest; | 163 friend class PanelBrowserWindowCocoaTest; |
164 Panel* panel() const { return panel_; } // only for tests | 164 Panel* panel() const { return panel_; } // only for tests |
165 | 165 |
166 Browser* browser_; // Weak, owned by native panel. | 166 Browser* browser_; // Weak, owned by native panel. |
167 | 167 |
168 Panel* panel_; // Weak pointer. Owns us. | 168 Panel* panel_; // Weak pointer. Owns us. |
169 | 169 |
170 // Platform specifc implementation for panels. It'd be one of | 170 // Platform specifc implementation for panels. It'd be one of |
171 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. | 171 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. |
172 NativePanel* native_panel_; // Weak, owns us (through ownership of Panel). | 172 NativePanel* native_panel_; // Weak, owns us (through ownership of Panel). |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindow); | 174 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindow); |
175 }; | 175 }; |
176 | 176 |
177 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ | 177 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ |
OLD | NEW |