| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 virtual void Show(); | 201 virtual void Show(); |
| 202 virtual void SetBounds(const gfx::Rect& bounds); | 202 virtual void SetBounds(const gfx::Rect& bounds); |
| 203 virtual void Close(); | 203 virtual void Close(); |
| 204 virtual void Activate(); | 204 virtual void Activate(); |
| 205 virtual bool IsActive() const; | 205 virtual bool IsActive() const; |
| 206 virtual void FlashFrame(); | 206 virtual void FlashFrame(); |
| 207 virtual gfx::NativeWindow GetNativeHandle(); | 207 virtual gfx::NativeWindow GetNativeHandle(); |
| 208 virtual BrowserWindowTesting* GetBrowserWindowTesting(); | 208 virtual BrowserWindowTesting* GetBrowserWindowTesting(); |
| 209 virtual StatusBubble* GetStatusBubble(); | 209 virtual StatusBubble* GetStatusBubble(); |
| 210 virtual void SelectedTabToolbarSizeChanged(bool is_animating); | 210 virtual void SelectedTabToolbarSizeChanged(bool is_animating); |
| 211 virtual void SelectedTabExtensionShelfSizeChanged(); |
| 211 virtual void UpdateTitleBar(); | 212 virtual void UpdateTitleBar(); |
| 212 virtual void UpdateDevTools(); | 213 virtual void UpdateDevTools(); |
| 213 virtual void FocusDevTools(); | 214 virtual void FocusDevTools(); |
| 214 virtual void UpdateLoadingAnimations(bool should_animate); | 215 virtual void UpdateLoadingAnimations(bool should_animate); |
| 215 virtual void SetStarredState(bool is_starred); | 216 virtual void SetStarredState(bool is_starred); |
| 216 virtual gfx::Rect GetRestoredBounds() const; | 217 virtual gfx::Rect GetRestoredBounds() const; |
| 217 virtual bool IsMaximized() const; | 218 virtual bool IsMaximized() const; |
| 218 virtual void SetFullscreen(bool fullscreen); | 219 virtual void SetFullscreen(bool fullscreen); |
| 219 virtual bool IsFullscreen() const; | 220 virtual bool IsFullscreen() const; |
| 220 virtual LocationBar* GetLocationBar() const; | 221 virtual LocationBar* GetLocationBar() const; |
| 221 virtual void SetFocusToLocationBar(); | 222 virtual void SetFocusToLocationBar(); |
| 222 virtual void UpdateStopGoState(bool is_loading, bool force); | 223 virtual void UpdateStopGoState(bool is_loading, bool force); |
| 223 virtual void UpdateToolbar(TabContents* contents, bool should_restore_state); | 224 virtual void UpdateToolbar(TabContents* contents, bool should_restore_state); |
| 224 virtual void FocusToolbar(); | 225 virtual void FocusToolbar(); |
| 225 virtual void DestroyBrowser(); | 226 virtual void DestroyBrowser(); |
| 226 virtual bool IsBookmarkBarVisible() const; | 227 virtual bool IsBookmarkBarVisible() const; |
| 227 virtual gfx::Rect GetRootWindowResizerRect() const; | 228 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 228 virtual void DisableInactiveFrame(); | 229 virtual void DisableInactiveFrame(); |
| 229 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 230 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
| 230 Profile* profile); | 231 Profile* profile); |
| 231 virtual void ToggleBookmarkBar(); | 232 virtual void ToggleBookmarkBar(); |
| 233 virtual void ToggleExtensionShelf(); |
| 232 virtual void ShowAboutChromeDialog(); | 234 virtual void ShowAboutChromeDialog(); |
| 233 virtual void ShowTaskManager(); | 235 virtual void ShowTaskManager(); |
| 234 virtual void ShowBookmarkManager(); | 236 virtual void ShowBookmarkManager(); |
| 235 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); | 237 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); |
| 236 virtual void SetDownloadShelfVisible(bool visible); | 238 virtual void SetDownloadShelfVisible(bool visible); |
| 237 virtual bool IsDownloadShelfVisible() const; | 239 virtual bool IsDownloadShelfVisible() const; |
| 238 virtual DownloadShelf* GetDownloadShelf(); | 240 virtual DownloadShelf* GetDownloadShelf(); |
| 239 virtual void ShowReportBugDialog(); | 241 virtual void ShowReportBugDialog(); |
| 240 virtual void ShowClearBrowsingDataDialog(); | 242 virtual void ShowClearBrowsingDataDialog(); |
| 241 virtual void ShowImportDialog(); | 243 virtual void ShowImportDialog(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 int LayoutTabStrip(); | 339 int LayoutTabStrip(); |
| 338 // Layout the following controls, starting at |top|, returns the coordinate | 340 // Layout the following controls, starting at |top|, returns the coordinate |
| 339 // of the bottom of the control, for laying out the next control. | 341 // of the bottom of the control, for laying out the next control. |
| 340 int LayoutToolbar(int top); | 342 int LayoutToolbar(int top); |
| 341 int LayoutBookmarkAndInfoBars(int top); | 343 int LayoutBookmarkAndInfoBars(int top); |
| 342 int LayoutBookmarkBar(int top); | 344 int LayoutBookmarkBar(int top); |
| 343 int LayoutInfoBar(int top); | 345 int LayoutInfoBar(int top); |
| 344 // Layout the TabContents container, between the coordinates |top| and | 346 // Layout the TabContents container, between the coordinates |top| and |
| 345 // |bottom|. | 347 // |bottom|. |
| 346 void LayoutTabContents(int top, int bottom); | 348 void LayoutTabContents(int top, int bottom); |
| 349 int LayoutExtensionAndDownloadShelves(); |
| 350 // Layout the Extension Shelf, returns the coordinate of the top of the |
| 351 // control, for laying out the previous control. |
| 352 int LayoutExtensionShelf(int bottom); |
| 347 // Layout the Download Shelf, returns the coordinate of the top of the | 353 // Layout the Download Shelf, returns the coordinate of the top of the |
| 348 // control, for laying out the previous control. | 354 // control, for laying out the previous control. |
| 349 int LayoutDownloadShelf(int bottom); | 355 int LayoutDownloadShelf(int bottom); |
| 350 // Layout the Status Bubble. | 356 // Layout the Status Bubble. |
| 351 void LayoutStatusBubble(int top); | 357 void LayoutStatusBubble(int top); |
| 352 // Layout the Extension Shelf | |
| 353 int LayoutExtensionShelf(); | |
| 354 | 358 |
| 355 // Prepare to show the Bookmark Bar for the specified TabContents. Returns | 359 // Prepare to show the Bookmark Bar for the specified TabContents. Returns |
| 356 // true if the Bookmark Bar can be shown (i.e. it's supported for this | 360 // true if the Bookmark Bar can be shown (i.e. it's supported for this |
| 357 // Browser type) and there should be a subsequent re-layout to show it. | 361 // Browser type) and there should be a subsequent re-layout to show it. |
| 358 // |contents| can be NULL. | 362 // |contents| can be NULL. |
| 359 bool MaybeShowBookmarkBar(TabContents* contents); | 363 bool MaybeShowBookmarkBar(TabContents* contents); |
| 360 | 364 |
| 361 // Prepare to show an Info Bar for the specified TabContents. Returns true | 365 // Prepare to show an Info Bar for the specified TabContents. Returns true |
| 362 // if there is an Info Bar to show and one is supported for this Browser | 366 // if there is an Info Bar to show and one is supported for this Browser |
| 363 // type, and there should be a subsequent re-layout to show it. | 367 // type, and there should be a subsequent re-layout to show it. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 typedef std::set<BrowserBubble*> BubbleSet; | 504 typedef std::set<BrowserBubble*> BubbleSet; |
| 501 BubbleSet browser_bubbles_; | 505 BubbleSet browser_bubbles_; |
| 502 | 506 |
| 503 // The accessible name of this view. | 507 // The accessible name of this view. |
| 504 std::wstring accessible_name_; | 508 std::wstring accessible_name_; |
| 505 | 509 |
| 506 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 510 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
| 507 }; | 511 }; |
| 508 | 512 |
| 509 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ | 513 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ |
| OLD | NEW |