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

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

Issue 9443007: Add Chrome To Mobile Service and Views Page Action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bail on empty GetOAuth2LoginRefreshToken(). Created 8 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 (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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 15 matching lines...) Expand all
26 26
27 #if defined(USE_AURA) 27 #if defined(USE_AURA)
28 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" 28 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
29 #elif defined(OS_WIN) 29 #elif defined(OS_WIN)
30 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" 30 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h"
31 #elif defined(TOOLKIT_USES_GTK) 31 #elif defined(TOOLKIT_USES_GTK)
32 #include "chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h" 32 #include "chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h"
33 #endif 33 #endif
34 34
35 class Browser; 35 class Browser;
36 class ChromeToMobileView;
36 class ContentSettingImageView; 37 class ContentSettingImageView;
37 class EVBubbleView; 38 class EVBubbleView;
38 class ExtensionAction; 39 class ExtensionAction;
39 class GURL; 40 class GURL;
40 class InstantController; 41 class InstantController;
41 class KeywordHintView; 42 class KeywordHintView;
42 class LocationIconView; 43 class LocationIconView;
43 class PageActionWithBadgeView; 44 class PageActionWithBadgeView;
44 class SelectedKeywordView; 45 class SelectedKeywordView;
45 class StarView; 46 class StarView;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 146
146 // Retrieves the PageAction View which is associated with |page_action|. 147 // Retrieves the PageAction View which is associated with |page_action|.
147 views::View* GetPageActionView(ExtensionAction* page_action); 148 views::View* GetPageActionView(ExtensionAction* page_action);
148 149
149 // Toggles the star on or off. 150 // Toggles the star on or off.
150 void SetStarToggled(bool on); 151 void SetStarToggled(bool on);
151 152
152 // Shows the bookmark bubble. 153 // Shows the bookmark bubble.
153 void ShowStarBubble(const GURL& url, bool newly_bookmarked); 154 void ShowStarBubble(const GURL& url, bool newly_bookmarked);
154 155
156 // Shows the Chrome To Mobile bubble.
157 void ShowChromeToMobileBubble();
158
155 // Returns the screen coordinates of the location entry (where the URL text 159 // Returns the screen coordinates of the location entry (where the URL text
156 // appears, not where the icons are shown). 160 // appears, not where the icons are shown).
157 gfx::Point GetLocationEntryOrigin() const; 161 gfx::Point GetLocationEntryOrigin() const;
158 162
159 #if defined(OS_WIN) || defined(USE_AURA) 163 #if defined(OS_WIN) || defined(USE_AURA)
160 // Invoked from OmniboxViewWin to show the instant suggestion. 164 // Invoked from OmniboxViewWin to show the instant suggestion.
161 void SetInstantSuggestion(const string16& text, 165 void SetInstantSuggestion(const string16& text,
162 bool animate_to_complete); 166 bool animate_to_complete);
163 167
164 // Returns the current instant suggestion text. 168 // Returns the current instant suggestion text.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 406
403 // The content setting views. 407 // The content setting views.
404 ContentSettingViews content_setting_views_; 408 ContentSettingViews content_setting_views_;
405 409
406 // The page action icon views. 410 // The page action icon views.
407 PageActionViews page_action_views_; 411 PageActionViews page_action_views_;
408 412
409 // The star. 413 // The star.
410 StarView* star_view_; 414 StarView* star_view_;
411 415
416 // The Chrome To Mobile page action icon view.
417 ChromeToMobileView* chrome_to_mobile_view_;
418
412 // The mode that dictates how the bar shows. 419 // The mode that dictates how the bar shows.
413 Mode mode_; 420 Mode mode_;
414 421
415 // True if we should show a focus rect while the location entry field is 422 // True if we should show a focus rect while the location entry field is
416 // focused. Used when the toolbar is in full keyboard accessibility mode. 423 // focused. Used when the toolbar is in full keyboard accessibility mode.
417 bool show_focus_rect_; 424 bool show_focus_rect_;
418 425
419 // This is in case we're destroyed before the model loads. We need to make 426 // This is in case we're destroyed before the model loads. We need to make
420 // Add/RemoveObserver calls. 427 // Add/RemoveObserver calls.
421 TemplateURLService* template_url_service_; 428 TemplateURLService* template_url_service_;
422 429
423 // Tracks this preference to determine whether bookmark editing is allowed. 430 // Tracks this preference to determine whether bookmark editing is allowed.
424 BooleanPrefMember edit_bookmarks_enabled_; 431 BooleanPrefMember edit_bookmarks_enabled_;
425 432
426 // While animating, the host clips the widget and draws only the bottom 433 // While animating, the host clips the widget and draws only the bottom
427 // part of it. The view needs to know the pixel offset at which we are drawing 434 // part of it. The view needs to know the pixel offset at which we are drawing
428 // the widget so that we can draw the curved edges that attach to the toolbar 435 // the widget so that we can draw the curved edges that attach to the toolbar
429 // in the right location. 436 // in the right location.
430 int animation_offset_; 437 int animation_offset_;
431 438
432 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 439 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
433 }; 440 };
434 441
435 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 442 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698