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

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

Issue 11091050: InstantExtended: Add js api for custom logo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 virtual void HideInstant() = 0; 328 virtual void HideInstant() = 0;
329 329
330 // Returns the desired bounds for instant in screen coordinates. Note that if 330 // Returns the desired bounds for instant in screen coordinates. Note that if
331 // instant isn't currently visible this returns the bounds instant would be 331 // instant isn't currently visible this returns the bounds instant would be
332 // placed at. 332 // placed at.
333 virtual gfx::Rect GetInstantBounds() = 0; 333 virtual gfx::Rect GetInstantBounds() = 0;
334 334
335 // Checks if an instant's tab contents is being shown. 335 // Checks if an instant's tab contents is being shown.
336 virtual bool IsInstantTabShowing() = 0; 336 virtual bool IsInstantTabShowing() = 0;
337 337
338 // Indicates whether the search provider has a custom logo for the NTP.
339 virtual void SetInstantHasCustomLogo(bool has_logo) = 0;
340
338 // Return the correct disposition for a popup window based on |bounds|. 341 // Return the correct disposition for a popup window based on |bounds|.
339 virtual WindowOpenDisposition GetDispositionForPopupBounds( 342 virtual WindowOpenDisposition GetDispositionForPopupBounds(
340 const gfx::Rect& bounds) = 0; 343 const gfx::Rect& bounds) = 0;
341 344
342 // Construct a FindBar implementation for the |browser|. 345 // Construct a FindBar implementation for the |browser|.
343 virtual FindBar* CreateFindBar() = 0; 346 virtual FindBar* CreateFindBar() = 0;
344 347
345 // Updates the |top_y| where the top of the constrained window should be 348 // Updates the |top_y| where the top of the constrained window should be
346 // positioned. When implemented, the method returns true and the value of 349 // positioned. When implemented, the method returns true and the value of
347 // |top_y| is non-negative. When not implemented, the method returns false and 350 // |top_y| is non-negative. When not implemented, the method returns false and
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 416
414 // Returns the ToolbarView. 417 // Returns the ToolbarView.
415 virtual ToolbarView* GetToolbarView() const = 0; 418 virtual ToolbarView* GetToolbarView() const = 0;
416 #endif 419 #endif
417 420
418 protected: 421 protected:
419 virtual ~BrowserWindowTesting() {} 422 virtual ~BrowserWindowTesting() {}
420 }; 423 };
421 424
422 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 425 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698