OLD | NEW |
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 Loading... |
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 193 |
193 // The star. It may not be visible. | 194 // The star. It may not be visible. |
194 StarView* star_view() { return star_view_; } | 195 StarView* star_view() { return star_view_; } |
195 | 196 |
196 // Toggles the translate icon on or off. | 197 // Toggles the translate icon on or off. |
197 void SetTranslateIconToggled(bool on); | 198 void SetTranslateIconToggled(bool on); |
198 | 199 |
199 // The translate icon. It may not be visible. | 200 // The translate icon. It may not be visible. |
200 TranslateIconView* translate_icon_view() { return translate_icon_view_; } | 201 TranslateIconView* translate_icon_view() { return translate_icon_view_; } |
201 | 202 |
| 203 void set_site_chip_view(SiteChipView* site_chip_view) { |
| 204 site_chip_view_ = site_chip_view; |
| 205 } |
| 206 |
202 // Shows the bookmark prompt. | 207 // Shows the bookmark prompt. |
203 void ShowBookmarkPrompt(); | 208 void ShowBookmarkPrompt(); |
204 | 209 |
205 // Returns the screen coordinates of the omnibox (where the URL text appears, | 210 // Returns the screen coordinates of the omnibox (where the URL text appears, |
206 // not where the icons are shown). | 211 // not where the icons are shown). |
207 gfx::Point GetOmniboxViewOrigin() const; | 212 gfx::Point GetOmniboxViewOrigin() const; |
208 | 213 |
209 // Shows |text| as an inline autocompletion. This is useful for IMEs, where | 214 // Shows |text| as an inline autocompletion. This is useful for IMEs, where |
210 // we can't show the autocompletion inside the actual OmniboxView. See | 215 // we can't show the autocompletion inside the actual OmniboxView. See |
211 // comments on |ime_inline_autocomplete_view_|. | 216 // comments on |ime_inline_autocomplete_view_|. |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 | 487 |
483 // The current page actions. | 488 // The current page actions. |
484 std::vector<ExtensionAction*> page_actions_; | 489 std::vector<ExtensionAction*> page_actions_; |
485 | 490 |
486 // The page action icon views. | 491 // The page action icon views. |
487 PageActionViews page_action_views_; | 492 PageActionViews page_action_views_; |
488 | 493 |
489 // The script bubble. | 494 // The script bubble. |
490 ScriptBubbleIconView* script_bubble_icon_view_; | 495 ScriptBubbleIconView* script_bubble_icon_view_; |
491 | 496 |
| 497 // The Site Chip. |
| 498 SiteChipView* site_chip_view_; |
| 499 |
492 // The icon for Translate. | 500 // The icon for Translate. |
493 TranslateIconView* translate_icon_view_; | 501 TranslateIconView* translate_icon_view_; |
494 | 502 |
495 // The star. | 503 // The star. |
496 StarView* star_view_; | 504 StarView* star_view_; |
497 | 505 |
498 // The search/go button. | 506 // The search/go button. |
499 views::LabelButton* search_button_; | 507 views::LabelButton* search_button_; |
500 | 508 |
501 // Whether we're in popup mode. This value also controls whether the location | 509 // Whether we're in popup mode. This value also controls whether the location |
(...skipping 20 matching lines...) Expand all Loading... |
522 // Used to register for notifications received by NotificationObserver. | 530 // Used to register for notifications received by NotificationObserver. |
523 content::NotificationRegistrar registrar_; | 531 content::NotificationRegistrar registrar_; |
524 | 532 |
525 // Used to bind callback functions to this object. | 533 // Used to bind callback functions to this object. |
526 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; | 534 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_; |
527 | 535 |
528 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 536 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
529 }; | 537 }; |
530 | 538 |
531 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 539 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |