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

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

Issue 7537030: Make panel adjust bounds per preferred size change notification on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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_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/common/content_settings_types.h" 10 #include "chrome/common/content_settings_types.h"
(...skipping 15 matching lines...) Expand all
26 class TabContentsWrapper; 26 class TabContentsWrapper;
27 class TemplateURL; 27 class TemplateURL;
28 class TemplateURLService; 28 class TemplateURLService;
29 #if !defined(OS_MACOSX) 29 #if !defined(OS_MACOSX)
30 class ToolbarView; 30 class ToolbarView;
31 #endif 31 #endif
32 struct NativeWebKeyboardEvent; 32 struct NativeWebKeyboardEvent;
33 33
34 namespace gfx { 34 namespace gfx {
35 class Rect; 35 class Rect;
36 class Size;
36 } 37 }
37 38
38 class Extension; 39 class Extension;
39 40
40 //////////////////////////////////////////////////////////////////////////////// 41 ////////////////////////////////////////////////////////////////////////////////
41 // BrowserWindow interface 42 // BrowserWindow interface
42 // An interface implemented by the "view" of the Browser window. 43 // An interface implemented by the "view" of the Browser window.
43 // 44 //
44 // NOTE: All getters may return NULL. 45 // NOTE: All getters may return NULL.
45 class BrowserWindow { 46 class BrowserWindow {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 const gfx::Rect& bounds) = 0; 338 const gfx::Rect& bounds) = 0;
338 339
339 // Construct a FindBar implementation for the |browser|. 340 // Construct a FindBar implementation for the |browser|.
340 virtual FindBar* CreateFindBar() = 0; 341 virtual FindBar* CreateFindBar() = 0;
341 342
342 #if defined(OS_CHROMEOS) 343 #if defined(OS_CHROMEOS)
343 // Shows the keyboard overlay dialog box. 344 // Shows the keyboard overlay dialog box.
344 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; 345 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0;
345 #endif 346 #endif
346 347
348 // Invoked when the preferred size of the contents in current tab has been
349 // changed. We might choose to update the window size to accomodate this
350 // change.
351 // Note that this won't be fired if we change tabs.
352 virtual void UpdatePreferredSize(TabContents* tab_contents,
353 const gfx::Size& pref_size) {}
354
347 // Construct a BrowserWindow implementation for the specified |browser|. 355 // Construct a BrowserWindow implementation for the specified |browser|.
348 static BrowserWindow* CreateBrowserWindow(Browser* browser); 356 static BrowserWindow* CreateBrowserWindow(Browser* browser);
349 357
350 protected: 358 protected:
351 friend class BrowserList; 359 friend class BrowserList;
352 friend class BrowserView; 360 friend class BrowserView;
353 virtual void DestroyBrowser() = 0; 361 virtual void DestroyBrowser() = 0;
354 }; 362 };
355 363
356 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) 364 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS)
(...skipping 24 matching lines...) Expand all
381 389
382 // Returns the ToolbarView. 390 // Returns the ToolbarView.
383 virtual ToolbarView* GetToolbarView() const = 0; 391 virtual ToolbarView* GetToolbarView() const = 0;
384 #endif 392 #endif
385 393
386 protected: 394 protected:
387 virtual ~BrowserWindowTesting() {} 395 virtual ~BrowserWindowTesting() {}
388 }; 396 };
389 397
390 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698