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

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, 4 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 // Return the correct disposition for a popup window based on |bounds|. 328 // Return the correct disposition for a popup window based on |bounds|.
328 virtual WindowOpenDisposition GetDispositionForPopupBounds( 329 virtual WindowOpenDisposition GetDispositionForPopupBounds(
329 const gfx::Rect& bounds) = 0; 330 const gfx::Rect& bounds) = 0;
330 331
331 #if defined(OS_CHROMEOS) 332 #if defined(OS_CHROMEOS)
332 // Shows the keyboard overlay dialog box. 333 // Shows the keyboard overlay dialog box.
333 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; 334 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0;
334 #endif 335 #endif
335 336
337 // Invoked when the preferred size of the contents has been changed.
Dmitry Titov 2011/08/05 19:02:20 Could you note here in what coord system the size
jianli 2011/08/09 19:56:16 Since it is about size, I do not think we need to
338 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
339
336 // Construct a BrowserWindow implementation for the specified |browser|. 340 // Construct a BrowserWindow implementation for the specified |browser|.
337 static BrowserWindow* CreateBrowserWindow(Browser* browser); 341 static BrowserWindow* CreateBrowserWindow(Browser* browser);
338 342
339 // Construct a FindBar implementation for the specified |browser|. 343 // Construct a FindBar implementation for the specified |browser|.
340 static FindBar* CreateFindBar(Browser* browser_window); 344 static FindBar* CreateFindBar(Browser* browser_window);
341 345
342 protected: 346 protected:
343 friend class BrowserList; 347 friend class BrowserList;
344 friend class BrowserView; 348 friend class BrowserView;
345 virtual void DestroyBrowser() = 0; 349 virtual void DestroyBrowser() = 0;
(...skipping 27 matching lines...) Expand all
373 377
374 // Returns the ToolbarView. 378 // Returns the ToolbarView.
375 virtual ToolbarView* GetToolbarView() const = 0; 379 virtual ToolbarView* GetToolbarView() const = 0;
376 #endif 380 #endif
377 381
378 protected: 382 protected:
379 virtual ~BrowserWindowTesting() {} 383 virtual ~BrowserWindowTesting() {}
380 }; 384 };
381 385
382 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 386 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698