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

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

Issue 92073003: [SiteChip] Draw site chip icon and site title. Drag support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use new image assets Created 7 years 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 28 matching lines...) Expand all
39 class InstantController; 39 class InstantController;
40 class KeywordHintView; 40 class KeywordHintView;
41 class LocationIconView; 41 class LocationIconView;
42 class OpenPDFInReaderView; 42 class OpenPDFInReaderView;
43 class ManagePasswordsIconView; 43 class ManagePasswordsIconView;
44 class PageActionWithBadgeView; 44 class PageActionWithBadgeView;
45 class PageActionImageView; 45 class PageActionImageView;
46 class Profile; 46 class Profile;
47 class ScriptBubbleIconView; 47 class ScriptBubbleIconView;
48 class SelectedKeywordView; 48 class SelectedKeywordView;
49 class SiteChipView;
49 class StarView; 50 class StarView;
50 class TemplateURLService; 51 class TemplateURLService;
51 class TranslateIconView; 52 class TranslateIconView;
52 class ZoomView; 53 class ZoomView;
53 54
54 namespace content { 55 namespace content {
55 struct SSLStatus; 56 struct SSLStatus;
56 } 57 }
57 58
58 namespace views { 59 namespace views {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 192
192 // The star. It may not be visible. 193 // The star. It may not be visible.
193 StarView* star_view() { return star_view_; } 194 StarView* star_view() { return star_view_; }
194 195
195 // Toggles the translate icon on or off. 196 // Toggles the translate icon on or off.
196 void SetTranslateIconToggled(bool on); 197 void SetTranslateIconToggled(bool on);
197 198
198 // The translate icon. It may not be visible. 199 // The translate icon. It may not be visible.
199 TranslateIconView* translate_icon_view() { return translate_icon_view_; } 200 TranslateIconView* translate_icon_view() { return translate_icon_view_; }
200 201
202 void set_site_chip_view(SiteChipView* site_chip_view) {
203 site_chip_view_ = site_chip_view;
204 }
205
201 // Shows the bookmark prompt. 206 // Shows the bookmark prompt.
202 void ShowBookmarkPrompt(); 207 void ShowBookmarkPrompt();
203 208
204 // Returns the screen coordinates of the omnibox (where the URL text appears, 209 // Returns the screen coordinates of the omnibox (where the URL text appears,
205 // not where the icons are shown). 210 // not where the icons are shown).
206 gfx::Point GetOmniboxViewOrigin() const; 211 gfx::Point GetOmniboxViewOrigin() const;
207 212
208 // Shows |text| as an inline autocompletion. This is useful for IMEs, where 213 // Shows |text| as an inline autocompletion. This is useful for IMEs, where
209 // we can't show the autocompletion inside the actual OmniboxView. See 214 // we can't show the autocompletion inside the actual OmniboxView. See
210 // comments on |ime_inline_autocomplete_view_|. 215 // comments on |ime_inline_autocomplete_view_|.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 486
482 // The current page actions. 487 // The current page actions.
483 std::vector<ExtensionAction*> page_actions_; 488 std::vector<ExtensionAction*> page_actions_;
484 489
485 // The page action icon views. 490 // The page action icon views.
486 PageActionViews page_action_views_; 491 PageActionViews page_action_views_;
487 492
488 // The script bubble. 493 // The script bubble.
489 ScriptBubbleIconView* script_bubble_icon_view_; 494 ScriptBubbleIconView* script_bubble_icon_view_;
490 495
496 // The Site Chip.
497 SiteChipView* site_chip_view_;
498
491 // The icon for Translate. 499 // The icon for Translate.
492 TranslateIconView* translate_icon_view_; 500 TranslateIconView* translate_icon_view_;
493 501
494 // The star. 502 // The star.
495 StarView* star_view_; 503 StarView* star_view_;
496 504
497 // Whether we're in popup mode. This value also controls whether the location 505 // Whether we're in popup mode. This value also controls whether the location
498 // bar is read-only. 506 // bar is read-only.
499 const bool is_popup_mode_; 507 const bool is_popup_mode_;
500 508
(...skipping 17 matching lines...) Expand all
518 // Used to register for notifications received by NotificationObserver. 526 // Used to register for notifications received by NotificationObserver.
519 content::NotificationRegistrar registrar_; 527 content::NotificationRegistrar registrar_;
520 528
521 // Used to bind callback functions to this object. 529 // Used to bind callback functions to this object.
522 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; 530 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_;
523 531
524 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 532 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
525 }; 533 };
526 534
527 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 535 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698