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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 12386019: Instant: Use only one hidden WebContents per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 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_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Shows the bookmark prompt. 197 // Shows the bookmark prompt.
198 void ShowBookmarkPrompt(); 198 void ShowBookmarkPrompt();
199 199
200 // Shows the Chrome To Mobile bubble. 200 // Shows the Chrome To Mobile bubble.
201 void ShowChromeToMobileBubble(); 201 void ShowChromeToMobileBubble();
202 202
203 // Returns the screen coordinates of the location entry (where the URL text 203 // Returns the screen coordinates of the location entry (where the URL text
204 // appears, not where the icons are shown). 204 // appears, not where the icons are shown).
205 gfx::Point GetLocationEntryOrigin() const; 205 gfx::Point GetLocationEntryOrigin() const;
206 206
207 // Invoked from OmniboxViewWin to show the instant suggestion. 207 // Invoked from OmniboxViewWin to show the Instant suggestion.
208 void SetInstantSuggestion(const string16& text); 208 void SetInstantSuggestion(const string16& text);
209 209
210 // Returns the current instant suggestion text. 210 // Returns the current Instant suggestion text.
211 string16 GetInstantSuggestion() const; 211 string16 GetInstantSuggestion() const;
212 212
213 // Sets whether the location entry can accept focus. 213 // Sets whether the location entry can accept focus.
214 void SetLocationEntryFocusable(bool focusable); 214 void SetLocationEntryFocusable(bool focusable);
215 215
216 // Returns true if the location entry is focusable and visible in 216 // Returns true if the location entry is focusable and visible in
217 // the root view. 217 // the root view.
218 bool IsLocationEntryFocusableInRootView() const; 218 bool IsLocationEntryFocusableInRootView() const;
219 219
220 // Sizing functions 220 // Sizing functions
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 const gfx::Point& press_pt, 281 const gfx::Point& press_pt,
282 OSExchangeData* data) OVERRIDE; 282 OSExchangeData* data) OVERRIDE;
283 virtual int GetDragOperationsForView(View* sender, 283 virtual int GetDragOperationsForView(View* sender,
284 const gfx::Point& p) OVERRIDE; 284 const gfx::Point& p) OVERRIDE;
285 virtual bool CanStartDragForView(View* sender, 285 virtual bool CanStartDragForView(View* sender,
286 const gfx::Point& press_pt, 286 const gfx::Point& press_pt,
287 const gfx::Point& p) OVERRIDE; 287 const gfx::Point& p) OVERRIDE;
288 288
289 // Overridden from LocationBar: 289 // Overridden from LocationBar:
290 virtual void ShowFirstRunBubble() OVERRIDE; 290 virtual void ShowFirstRunBubble() OVERRIDE;
291 virtual void SetInstantSuggestion(
292 const InstantSuggestion& suggestion) OVERRIDE;
293 virtual string16 GetInputString() const OVERRIDE; 291 virtual string16 GetInputString() const OVERRIDE;
294 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; 292 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE;
295 virtual content::PageTransition GetPageTransition() const OVERRIDE; 293 virtual content::PageTransition GetPageTransition() const OVERRIDE;
296 virtual void AcceptInput() OVERRIDE; 294 virtual void AcceptInput() OVERRIDE;
297 virtual void FocusLocation(bool select_all) OVERRIDE; 295 virtual void FocusLocation(bool select_all) OVERRIDE;
298 virtual void FocusSearch() OVERRIDE; 296 virtual void FocusSearch() OVERRIDE;
299 virtual void UpdateContentSettingsIcons() OVERRIDE; 297 virtual void UpdateContentSettingsIcons() OVERRIDE;
300 virtual void UpdatePageActions() OVERRIDE; 298 virtual void UpdatePageActions() OVERRIDE;
301 virtual void InvalidatePageActions() OVERRIDE; 299 virtual void InvalidatePageActions() OVERRIDE;
302 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; 300 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // in the right location. 502 // in the right location.
505 int animation_offset_; 503 int animation_offset_;
506 504
507 // Used to register for notifications received by NotificationObserver. 505 // Used to register for notifications received by NotificationObserver.
508 content::NotificationRegistrar registrar_; 506 content::NotificationRegistrar registrar_;
509 507
510 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 508 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
511 }; 509 };
512 510
513 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 511 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698