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

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

Issue 10915217: Hook up SetInstantPreviewHeight for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments. Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/application_lifetime.h" 9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #include "chrome/browser/ui/base_window.h" 10 #include "chrome/browser/ui/base_window.h"
11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
13 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 13 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
14 #include "chrome/common/content_settings_types.h" 14 #include "chrome/common/content_settings_types.h"
15 #include "chrome/common/instant_types.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
17 18
18 class Browser; 19 class Browser;
19 class BrowserWindowTesting; 20 class BrowserWindowTesting;
20 class DownloadShelf; 21 class DownloadShelf;
21 class FindBar; 22 class FindBar;
22 class GURL; 23 class GURL;
23 class LocationBar; 24 class LocationBar;
24 class Profile; 25 class Profile;
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 virtual void EnterPresentationMode( 320 virtual void EnterPresentationMode(
320 const GURL& url, 321 const GURL& url,
321 FullscreenExitBubbleType bubble_type) = 0; 322 FullscreenExitBubbleType bubble_type) = 0;
322 virtual void ExitPresentationMode() = 0; 323 virtual void ExitPresentationMode() = 0;
323 virtual bool InPresentationMode() = 0; 324 virtual bool InPresentationMode() = 0;
324 #endif 325 #endif
325 326
326 // Invoked when instant's tab contents should be shown. 327 // Invoked when instant's tab contents should be shown.
327 virtual void ShowInstant(TabContents* preview) = 0; 328 virtual void ShowInstant(TabContents* preview) = 0;
328 329
329 // Invoked when the instant's tab contents should be hidden. 330 // Invoked when instant's tab contents should be hidden.
330 virtual void HideInstant() = 0; 331 virtual void HideInstant() = 0;
331 332
332 // Returns the desired bounds for instant in screen coordinates. Note that if 333 // Returns the desired bounds for instant in screen coordinates. Note that if
333 // instant isn't currently visible this returns the bounds instant would be 334 // instant isn't currently visible this returns the bounds instant would be
334 // placed at. 335 // placed at.
335 virtual gfx::Rect GetInstantBounds() = 0; 336 virtual gfx::Rect GetInstantBounds() = 0;
336 337
338 // Resize the instant preview to the given |height|, interpreting the height
sky 2012/09/19 00:23:18 Everything after ',' is a bit obvious. Nuke it.
Jered 2012/09/19 18:52:09 Done.
339 // to be in the given |units| (see instant_types.h for details).
340 virtual void SetInstantPreviewHeight(int height, InstantSizeUnits units) = 0;
341
337 // Checks if an instant's tab contents is being shown. 342 // Checks if an instant's tab contents is being shown.
338 virtual bool IsInstantTabShowing() = 0; 343 virtual bool IsInstantTabShowing() = 0;
339 344
340 // Return the correct disposition for a popup window based on |bounds|. 345 // Return the correct disposition for a popup window based on |bounds|.
341 virtual WindowOpenDisposition GetDispositionForPopupBounds( 346 virtual WindowOpenDisposition GetDispositionForPopupBounds(
342 const gfx::Rect& bounds) = 0; 347 const gfx::Rect& bounds) = 0;
343 348
344 // Construct a FindBar implementation for the |browser|. 349 // Construct a FindBar implementation for the |browser|.
345 virtual FindBar* CreateFindBar() = 0; 350 virtual FindBar* CreateFindBar() = 0;
346 351
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 414
410 // Returns the ToolbarView. 415 // Returns the ToolbarView.
411 virtual ToolbarView* GetToolbarView() const = 0; 416 virtual ToolbarView* GetToolbarView() const = 0;
412 #endif 417 #endif
413 418
414 protected: 419 protected:
415 virtual ~BrowserWindowTesting() {} 420 virtual ~BrowserWindowTesting() {}
416 }; 421 };
417 422
418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 423 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698