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

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

Issue 3417011: Makes match preview send the dimensions of the omnibox to the page. (Closed)
Patch Set: Fix unittest Created 10 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/tab_contents/navigation_entry.h" 9 #include "chrome/browser/tab_contents/navigation_entry.h"
10 #include "chrome/common/content_settings_types.h" 10 #include "chrome/common/content_settings_types.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // Opens the tabpose view. 311 // Opens the tabpose view.
312 virtual void OpenTabpose() = 0; 312 virtual void OpenTabpose() = 0;
313 #endif 313 #endif
314 314
315 // Invoked when the match preview's tab contents should be shown. 315 // Invoked when the match preview's tab contents should be shown.
316 virtual void ShowMatchPreview() = 0; 316 virtual void ShowMatchPreview() = 0;
317 317
318 // Invoked when the match preview's tab contents should be hidden. 318 // Invoked when the match preview's tab contents should be hidden.
319 virtual void HideMatchPreview() = 0; 319 virtual void HideMatchPreview() = 0;
320 320
321 // Returns the desired bounds for match preview in screen coordinates. Note
322 // that if match preview isn't currently visible this returns the bounds the
323 // match preview would be placed at.
324 virtual gfx::Rect GetMatchPreviewBounds() = 0;
325
321 // Construct a BrowserWindow implementation for the specified |browser|. 326 // Construct a BrowserWindow implementation for the specified |browser|.
322 static BrowserWindow* CreateBrowserWindow(Browser* browser); 327 static BrowserWindow* CreateBrowserWindow(Browser* browser);
323 328
324 // Construct a FindBar implementation for the specified |browser|. 329 // Construct a FindBar implementation for the specified |browser|.
325 static FindBar* CreateFindBar(Browser* browser_window); 330 static FindBar* CreateFindBar(Browser* browser_window);
326 331
327 protected: 332 protected:
328 friend class BrowserList; 333 friend class BrowserList;
329 friend class BrowserView; 334 friend class BrowserView;
330 virtual void DestroyBrowser() = 0; 335 virtual void DestroyBrowser() = 0;
(...skipping 29 matching lines...) Expand all
360 365
361 // Returns the ToolbarView. 366 // Returns the ToolbarView.
362 virtual ToolbarView* GetToolbarView() const = 0; 367 virtual ToolbarView* GetToolbarView() const = 0;
363 #endif 368 #endif
364 369
365 protected: 370 protected:
366 virtual ~BrowserWindowTesting() {} 371 virtual ~BrowserWindowTesting() {}
367 }; 372 };
368 373
369 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ 374 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698