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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
10 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 10 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // Invoked when the preferred size of the contents in current tab has been 354 // Invoked when the preferred size of the contents in current tab has been
355 // changed. We might choose to update the window size to accomodate this 355 // changed. We might choose to update the window size to accomodate this
356 // change. 356 // change.
357 // Note that this won't be fired if we change tabs. 357 // Note that this won't be fired if we change tabs.
358 virtual void UpdatePreferredSize(content::WebContents* web_contents, 358 virtual void UpdatePreferredSize(content::WebContents* web_contents,
359 const gfx::Size& pref_size) {} 359 const gfx::Size& pref_size) {}
360 360
361 // Construct a BrowserWindow implementation for the specified |browser|. 361 // Construct a BrowserWindow implementation for the specified |browser|.
362 static BrowserWindow* CreateBrowserWindow(Browser* browser); 362 static BrowserWindow* CreateBrowserWindow(Browser* browser);
363 363
364 // Shows the avatar bubble inside |tab_contents|. The bubble is positioned 364 // Shows the avatar bubble inside |web_contents|. The bubble is positioned
365 // relative to |rect|. |rect| should be in the |tab_contents| coordinate 365 // relative to |rect|. |rect| should be in the |web_contents| coordinate
366 // system. 366 // system.
367 virtual void ShowAvatarBubble(TabContents* tab_contents, 367 virtual void ShowAvatarBubble(content::WebContents* web_contents,
368 const gfx::Rect& rect) = 0; 368 const gfx::Rect& rect) = 0;
369 369
370 // Shows the avatar bubble on the window frame off of the avatar button. 370 // Shows the avatar bubble on the window frame off of the avatar button.
371 virtual void ShowAvatarBubbleFromAvatarButton() = 0; 371 virtual void ShowAvatarBubbleFromAvatarButton() = 0;
372 372
373 protected: 373 protected:
374 friend class BrowserList; 374 friend class BrowserList;
375 friend class BrowserView; 375 friend class BrowserView;
376 virtual void DestroyBrowser() = 0; 376 virtual void DestroyBrowser() = 0;
377 }; 377 };
(...skipping 26 matching lines...) Expand all
404 404
405 // Returns the ToolbarView. 405 // Returns the ToolbarView.
406 virtual ToolbarView* GetToolbarView() const = 0; 406 virtual ToolbarView* GetToolbarView() const = 0;
407 #endif 407 #endif
408 408
409 protected: 409 protected:
410 virtual ~BrowserWindowTesting() {} 410 virtual ~BrowserWindowTesting() {}
411 }; 411 };
412 412
413 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 413 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698