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 14 matching lines...) Expand all Loading... |
25 #include "ui/gfx/rect.h" | 25 #include "ui/gfx/rect.h" |
26 #include "ui/views/controls/button/button.h" | 26 #include "ui/views/controls/button/button.h" |
27 #include "ui/views/controls/native/native_view_host.h" | 27 #include "ui/views/controls/native/native_view_host.h" |
28 #include "ui/views/drag_controller.h" | 28 #include "ui/views/drag_controller.h" |
29 | 29 |
30 #if defined(USE_AURA) | 30 #if defined(USE_AURA) |
31 #include "ui/compositor/layer_animation_observer.h" | 31 #include "ui/compositor/layer_animation_observer.h" |
32 #endif | 32 #endif |
33 | 33 |
34 class ActionBoxButtonView; | 34 class ActionBoxButtonView; |
35 class AutofillCreditCardView; | |
36 class CommandUpdater; | 35 class CommandUpdater; |
37 class ContentSettingBubbleModelDelegate; | 36 class ContentSettingBubbleModelDelegate; |
38 class ContentSettingImageView; | 37 class ContentSettingImageView; |
39 class EVBubbleView; | 38 class EVBubbleView; |
40 class ExtensionAction; | 39 class ExtensionAction; |
41 class GURL; | 40 class GURL; |
| 41 class GeneratedCreditCardView; |
42 class InstantController; | 42 class InstantController; |
43 class KeywordHintView; | 43 class KeywordHintView; |
44 class LocationIconView; | 44 class LocationIconView; |
45 class MicSearchView; | 45 class MicSearchView; |
46 class OpenPDFInReaderView; | 46 class OpenPDFInReaderView; |
47 class PageActionWithBadgeView; | 47 class PageActionWithBadgeView; |
48 class PageActionImageView; | 48 class PageActionImageView; |
49 class Profile; | 49 class Profile; |
50 class ScriptBubbleIconView; | 50 class ScriptBubbleIconView; |
51 class SelectedKeywordView; | 51 class SelectedKeywordView; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 virtual void OnMouseCaptureLost() OVERRIDE; | 238 virtual void OnMouseCaptureLost() OVERRIDE; |
239 #endif | 239 #endif |
240 | 240 |
241 LocationIconView* location_icon_view() { return location_icon_view_; } | 241 LocationIconView* location_icon_view() { return location_icon_view_; } |
242 const LocationIconView* location_icon_view() const { | 242 const LocationIconView* location_icon_view() const { |
243 return location_icon_view_; | 243 return location_icon_view_; |
244 } | 244 } |
245 | 245 |
246 views::View* location_entry_view() const { return location_entry_view_; } | 246 views::View* location_entry_view() const { return location_entry_view_; } |
247 | 247 |
248 views::View* autofill_credit_card_view(); | 248 views::View* generated_credit_card_view(); |
249 | 249 |
250 // OmniboxEditController: | 250 // OmniboxEditController: |
251 virtual void OnAutocompleteAccept(const GURL& url, | 251 virtual void OnAutocompleteAccept(const GURL& url, |
252 WindowOpenDisposition disposition, | 252 WindowOpenDisposition disposition, |
253 content::PageTransition transition, | 253 content::PageTransition transition, |
254 const GURL& alternate_nav_url) OVERRIDE; | 254 const GURL& alternate_nav_url) OVERRIDE; |
255 virtual void OnChanged() OVERRIDE; | 255 virtual void OnChanged() OVERRIDE; |
256 virtual void OnSelectionBoundsChanged() OVERRIDE; | 256 virtual void OnSelectionBoundsChanged() OVERRIDE; |
257 virtual void OnInputInProgress(bool in_progress) OVERRIDE; | 257 virtual void OnInputInProgress(bool in_progress) OVERRIDE; |
258 virtual void OnKillFocus() OVERRIDE; | 258 virtual void OnKillFocus() OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 virtual string16 GetInputString() const OVERRIDE; | 290 virtual string16 GetInputString() const OVERRIDE; |
291 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; | 291 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; |
292 virtual content::PageTransition GetPageTransition() const OVERRIDE; | 292 virtual content::PageTransition GetPageTransition() const OVERRIDE; |
293 virtual void AcceptInput() OVERRIDE; | 293 virtual void AcceptInput() OVERRIDE; |
294 virtual void FocusLocation(bool select_all) OVERRIDE; | 294 virtual void FocusLocation(bool select_all) OVERRIDE; |
295 virtual void FocusSearch() OVERRIDE; | 295 virtual void FocusSearch() OVERRIDE; |
296 virtual void UpdateContentSettingsIcons() OVERRIDE; | 296 virtual void UpdateContentSettingsIcons() OVERRIDE; |
297 virtual void UpdatePageActions() OVERRIDE; | 297 virtual void UpdatePageActions() OVERRIDE; |
298 virtual void InvalidatePageActions() OVERRIDE; | 298 virtual void InvalidatePageActions() OVERRIDE; |
299 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; | 299 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; |
300 virtual void UpdateAutofillCreditCardView() OVERRIDE; | 300 virtual void UpdateGeneratedCreditCardView() OVERRIDE; |
301 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; | 301 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; |
302 virtual void Revert() OVERRIDE; | 302 virtual void Revert() OVERRIDE; |
303 virtual const OmniboxView* GetLocationEntry() const OVERRIDE; | 303 virtual const OmniboxView* GetLocationEntry() const OVERRIDE; |
304 virtual OmniboxView* GetLocationEntry() OVERRIDE; | 304 virtual OmniboxView* GetLocationEntry() OVERRIDE; |
305 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; | 305 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; |
306 | 306 |
307 // LocationBarTesting: | 307 // LocationBarTesting: |
308 virtual int PageActionCount() OVERRIDE; | 308 virtual int PageActionCount() OVERRIDE; |
309 virtual int PageActionVisibleCount() OVERRIDE; | 309 virtual int PageActionVisibleCount() OVERRIDE; |
310 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE; | 310 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 476 |
477 // The voice search icon. | 477 // The voice search icon. |
478 MicSearchView* mic_search_view_; | 478 MicSearchView* mic_search_view_; |
479 | 479 |
480 // The content setting views. | 480 // The content setting views. |
481 ContentSettingViews content_setting_views_; | 481 ContentSettingViews content_setting_views_; |
482 | 482 |
483 // The zoom icon. | 483 // The zoom icon. |
484 ZoomView* zoom_view_; | 484 ZoomView* zoom_view_; |
485 | 485 |
486 // A bubble that shows after successful submission of the Autofill dialog. | 486 // A bubble that shows after successfully generating a new credit card number. |
487 AutofillCreditCardView* autofill_credit_card_view_; | 487 GeneratedCreditCardView* generated_credit_card_view_; |
488 | 488 |
489 // The icon to open a PDF in Reader. | 489 // The icon to open a PDF in Reader. |
490 OpenPDFInReaderView* open_pdf_in_reader_view_; | 490 OpenPDFInReaderView* open_pdf_in_reader_view_; |
491 | 491 |
492 // The current page actions. | 492 // The current page actions. |
493 std::vector<ExtensionAction*> page_actions_; | 493 std::vector<ExtensionAction*> page_actions_; |
494 | 494 |
495 // The page action icon views. | 495 // The page action icon views. |
496 PageActionViews page_action_views_; | 496 PageActionViews page_action_views_; |
497 | 497 |
(...skipping 23 matching lines...) Expand all Loading... |
521 // in the right location. | 521 // in the right location. |
522 int animation_offset_; | 522 int animation_offset_; |
523 | 523 |
524 // Used to register for notifications received by NotificationObserver. | 524 // Used to register for notifications received by NotificationObserver. |
525 content::NotificationRegistrar registrar_; | 525 content::NotificationRegistrar registrar_; |
526 | 526 |
527 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 527 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
528 }; | 528 }; |
529 | 529 |
530 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 530 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |