OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 28 matching lines...) Expand all Loading... |
39 // view: http://dev.chromium.org/developers/design-documents/browser-window | 39 // view: http://dev.chromium.org/developers/design-documents/browser-window |
40 | 40 |
41 class AccessibleToolbarView; | 41 class AccessibleToolbarView; |
42 class AccessibleViewHelper; | 42 class AccessibleViewHelper; |
43 class BookmarkBarView; | 43 class BookmarkBarView; |
44 class Browser; | 44 class Browser; |
45 class BrowserBubble; | 45 class BrowserBubble; |
46 class BrowserViewLayout; | 46 class BrowserViewLayout; |
47 class DownloadShelfView; | 47 class DownloadShelfView; |
48 class EncodingMenuModel; | 48 class EncodingMenuModel; |
49 class ExtensionShelf; | |
50 class FullscreenExitBubble; | 49 class FullscreenExitBubble; |
51 class HtmlDialogUIDelegate; | 50 class HtmlDialogUIDelegate; |
52 class InfoBarContainer; | 51 class InfoBarContainer; |
53 class LocationBarView; | 52 class LocationBarView; |
54 class SideTabStrip; | 53 class SideTabStrip; |
55 class StatusBubbleViews; | 54 class StatusBubbleViews; |
56 class TabContentsContainer; | 55 class TabContentsContainer; |
57 class ToolbarView; | 56 class ToolbarView; |
58 class ZoomMenuModel; | 57 class ZoomMenuModel; |
59 | 58 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Returns the bounds of the TabStrip. Used by themed views to determine the | 144 // Returns the bounds of the TabStrip. Used by themed views to determine the |
146 // offset of IDR_THEME_TOOLBAR. | 145 // offset of IDR_THEME_TOOLBAR. |
147 gfx::Rect GetTabStripBounds() const; | 146 gfx::Rect GetTabStripBounds() const; |
148 | 147 |
149 // Accessor for the TabStrip. | 148 // Accessor for the TabStrip. |
150 BaseTabStrip* tabstrip() const { return tabstrip_; } | 149 BaseTabStrip* tabstrip() const { return tabstrip_; } |
151 | 150 |
152 // Accessor for the Toolbar. | 151 // Accessor for the Toolbar. |
153 ToolbarView* toolbar() const { return toolbar_; } | 152 ToolbarView* toolbar() const { return toolbar_; } |
154 | 153 |
155 // Accessor for the ExtensionShelf. | |
156 ExtensionShelf* extension_shelf() const { return extension_shelf_; } | |
157 | |
158 // Returns true if various window components are visible. | 154 // Returns true if various window components are visible. |
159 bool IsTabStripVisible() const; | 155 bool IsTabStripVisible() const; |
160 | 156 |
161 // Returns true if the vertical tabstrip is in use. | 157 // Returns true if the vertical tabstrip is in use. |
162 bool UseVerticalTabs() const; | 158 bool UseVerticalTabs() const; |
163 | 159 |
164 // Returns true if the profile associated with this Browser window is | 160 // Returns true if the profile associated with this Browser window is |
165 // off the record. | 161 // off the record. |
166 bool IsOffTheRecord() const; | 162 bool IsOffTheRecord() const; |
167 | 163 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 virtual void SetBounds(const gfx::Rect& bounds); | 240 virtual void SetBounds(const gfx::Rect& bounds); |
245 virtual void Close(); | 241 virtual void Close(); |
246 virtual void Activate(); | 242 virtual void Activate(); |
247 virtual void Deactivate(); | 243 virtual void Deactivate(); |
248 virtual bool IsActive() const; | 244 virtual bool IsActive() const; |
249 virtual void FlashFrame(); | 245 virtual void FlashFrame(); |
250 virtual gfx::NativeWindow GetNativeHandle(); | 246 virtual gfx::NativeWindow GetNativeHandle(); |
251 virtual BrowserWindowTesting* GetBrowserWindowTesting(); | 247 virtual BrowserWindowTesting* GetBrowserWindowTesting(); |
252 virtual StatusBubble* GetStatusBubble(); | 248 virtual StatusBubble* GetStatusBubble(); |
253 virtual void SelectedTabToolbarSizeChanged(bool is_animating); | 249 virtual void SelectedTabToolbarSizeChanged(bool is_animating); |
254 virtual void SelectedTabExtensionShelfSizeChanged(); | |
255 virtual void UpdateTitleBar(); | 250 virtual void UpdateTitleBar(); |
256 virtual void ShelfVisibilityChanged(); | 251 virtual void ShelfVisibilityChanged(); |
257 virtual void UpdateDevTools(); | 252 virtual void UpdateDevTools(); |
258 virtual void UpdateLoadingAnimations(bool should_animate); | 253 virtual void UpdateLoadingAnimations(bool should_animate); |
259 virtual void SetStarredState(bool is_starred); | 254 virtual void SetStarredState(bool is_starred); |
260 virtual gfx::Rect GetRestoredBounds() const; | 255 virtual gfx::Rect GetRestoredBounds() const; |
261 virtual bool IsMaximized() const; | 256 virtual bool IsMaximized() const; |
262 virtual void SetFullscreen(bool fullscreen); | 257 virtual void SetFullscreen(bool fullscreen); |
263 virtual bool IsFullscreen() const; | 258 virtual bool IsFullscreen() const; |
264 virtual LocationBar* GetLocationBar() const; | 259 virtual LocationBar* GetLocationBar() const; |
265 virtual void SetFocusToLocationBar(bool select_all); | 260 virtual void SetFocusToLocationBar(bool select_all); |
266 virtual void UpdateReloadStopState(bool is_loading, bool force); | 261 virtual void UpdateReloadStopState(bool is_loading, bool force); |
267 virtual void UpdateToolbar(TabContents* contents, bool should_restore_state); | 262 virtual void UpdateToolbar(TabContents* contents, bool should_restore_state); |
268 virtual void FocusToolbar(); | 263 virtual void FocusToolbar(); |
269 virtual void FocusAppMenu(); | 264 virtual void FocusAppMenu(); |
270 virtual void FocusBookmarksToolbar(); | 265 virtual void FocusBookmarksToolbar(); |
271 virtual void FocusChromeOSStatus() {} | 266 virtual void FocusChromeOSStatus() {} |
272 virtual void RotatePaneFocus(bool forwards); | 267 virtual void RotatePaneFocus(bool forwards); |
273 virtual void DestroyBrowser(); | 268 virtual void DestroyBrowser(); |
274 virtual bool IsBookmarkBarVisible() const; | 269 virtual bool IsBookmarkBarVisible() const; |
275 virtual bool IsBookmarkBarAnimating() const; | 270 virtual bool IsBookmarkBarAnimating() const; |
276 virtual bool IsToolbarVisible() const; | 271 virtual bool IsToolbarVisible() const; |
277 virtual gfx::Rect GetRootWindowResizerRect() const; | 272 virtual gfx::Rect GetRootWindowResizerRect() const; |
278 virtual void DisableInactiveFrame(); | 273 virtual void DisableInactiveFrame(); |
279 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 274 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
280 Profile* profile); | 275 Profile* profile); |
281 virtual void ToggleBookmarkBar(); | 276 virtual void ToggleBookmarkBar(); |
282 virtual void ToggleExtensionShelf(); | |
283 virtual views::Window* ShowAboutChromeDialog(); | 277 virtual views::Window* ShowAboutChromeDialog(); |
284 virtual void ShowUpdateChromeDialog(); | 278 virtual void ShowUpdateChromeDialog(); |
285 virtual void ShowTaskManager(); | 279 virtual void ShowTaskManager(); |
286 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 280 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
287 virtual void SetDownloadShelfVisible(bool visible); | 281 virtual void SetDownloadShelfVisible(bool visible); |
288 virtual bool IsDownloadShelfVisible() const; | 282 virtual bool IsDownloadShelfVisible() const; |
289 virtual DownloadShelf* GetDownloadShelf(); | 283 virtual DownloadShelf* GetDownloadShelf(); |
290 virtual void ShowReportBugDialog(); | 284 virtual void ShowReportBugDialog(); |
291 virtual void ShowClearBrowsingDataDialog(); | 285 virtual void ShowClearBrowsingDataDialog(); |
292 virtual void ShowImportDialog(); | 286 virtual void ShowImportDialog(); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 // The custom JumpList for Windows 7. | 579 // The custom JumpList for Windows 7. |
586 scoped_ptr<JumpList> jumplist_; | 580 scoped_ptr<JumpList> jumplist_; |
587 | 581 |
588 // The custom AeroPeek manager for Windows 7. | 582 // The custom AeroPeek manager for Windows 7. |
589 scoped_ptr<AeroPeekManager> aeropeek_manager_; | 583 scoped_ptr<AeroPeekManager> aeropeek_manager_; |
590 #endif | 584 #endif |
591 | 585 |
592 // The timer used to update frames for the Loading Animation. | 586 // The timer used to update frames for the Loading Animation. |
593 base::RepeatingTimer<BrowserView> loading_animation_timer_; | 587 base::RepeatingTimer<BrowserView> loading_animation_timer_; |
594 | 588 |
595 // A bottom bar for showing extensions. | |
596 ExtensionShelf* extension_shelf_; | |
597 | |
598 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 589 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
599 | 590 |
600 scoped_ptr<AccessibleViewHelper> accessible_view_helper_; | 591 scoped_ptr<AccessibleViewHelper> accessible_view_helper_; |
601 | 592 |
602 NotificationRegistrar registrar_; | 593 NotificationRegistrar registrar_; |
603 | 594 |
604 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 595 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
605 }; | 596 }; |
606 | 597 |
607 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 598 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |