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

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: Minor fixes. 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"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 virtual void EnterPresentationMode( 319 virtual void EnterPresentationMode(
320 const GURL& url, 320 const GURL& url,
321 FullscreenExitBubbleType bubble_type) = 0; 321 FullscreenExitBubbleType bubble_type) = 0;
322 virtual void ExitPresentationMode() = 0; 322 virtual void ExitPresentationMode() = 0;
323 virtual bool InPresentationMode() = 0; 323 virtual bool InPresentationMode() = 0;
324 #endif 324 #endif
325 325
326 // Invoked when instant's tab contents should be shown. 326 // Invoked when instant's tab contents should be shown.
327 virtual void ShowInstant(TabContents* preview) = 0; 327 virtual void ShowInstant(TabContents* preview) = 0;
328 328
329 // Invoked when the instant's tab contents should be hidden. 329 // Invoked when instant's tab contents should be hidden.
330 virtual void HideInstant() = 0; 330 virtual void HideInstant() = 0;
331 331
332 // Resizes the Instant preview. If |is_percent| is true, then |value| is a
333 // percentage of the available content height in [0, 100], otherwise |value|
334 // is the desired height in pixels.
335 virtual void SetInstantPreviewHeight(int value, bool is_percent) = 0;
336
332 // Returns the desired bounds for instant in screen coordinates. Note that if 337 // 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 338 // instant isn't currently visible this returns the bounds instant would be
334 // placed at. 339 // placed at.
335 virtual gfx::Rect GetInstantBounds() = 0; 340 virtual gfx::Rect GetInstantBounds() = 0;
336 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(
(...skipping 67 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