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 30 matching lines...) Expand all Loading... |
289 virtual string16 GetInputString() const OVERRIDE; | 289 virtual string16 GetInputString() const OVERRIDE; |
290 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; | 290 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; |
291 virtual content::PageTransition GetPageTransition() const OVERRIDE; | 291 virtual content::PageTransition GetPageTransition() const OVERRIDE; |
292 virtual void AcceptInput() OVERRIDE; | 292 virtual void AcceptInput() OVERRIDE; |
293 virtual void FocusLocation(bool select_all) OVERRIDE; | 293 virtual void FocusLocation(bool select_all) OVERRIDE; |
294 virtual void FocusSearch() OVERRIDE; | 294 virtual void FocusSearch() OVERRIDE; |
295 virtual void UpdateContentSettingsIcons() OVERRIDE; | 295 virtual void UpdateContentSettingsIcons() OVERRIDE; |
296 virtual void UpdatePageActions() OVERRIDE; | 296 virtual void UpdatePageActions() OVERRIDE; |
297 virtual void InvalidatePageActions() OVERRIDE; | 297 virtual void InvalidatePageActions() OVERRIDE; |
298 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; | 298 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; |
299 virtual void UpdateAutofillCreditCardView() OVERRIDE; | 299 virtual void UpdateGeneratedCreditCardView() OVERRIDE; |
300 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; | 300 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; |
301 virtual void Revert() OVERRIDE; | 301 virtual void Revert() OVERRIDE; |
302 virtual const OmniboxView* GetLocationEntry() const OVERRIDE; | 302 virtual const OmniboxView* GetLocationEntry() const OVERRIDE; |
303 virtual OmniboxView* GetLocationEntry() OVERRIDE; | 303 virtual OmniboxView* GetLocationEntry() OVERRIDE; |
304 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; | 304 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; |
305 | 305 |
306 // LocationBarTesting: | 306 // LocationBarTesting: |
307 virtual int PageActionCount() OVERRIDE; | 307 virtual int PageActionCount() OVERRIDE; |
308 virtual int PageActionVisibleCount() OVERRIDE; | 308 virtual int PageActionVisibleCount() OVERRIDE; |
309 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE; | 309 virtual ExtensionAction* GetPageAction(size_t index) OVERRIDE; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 | 475 |
476 // The voice search icon. | 476 // The voice search icon. |
477 MicSearchView* mic_search_view_; | 477 MicSearchView* mic_search_view_; |
478 | 478 |
479 // The content setting views. | 479 // The content setting views. |
480 ContentSettingViews content_setting_views_; | 480 ContentSettingViews content_setting_views_; |
481 | 481 |
482 // The zoom icon. | 482 // The zoom icon. |
483 ZoomView* zoom_view_; | 483 ZoomView* zoom_view_; |
484 | 484 |
485 // A bubble that shows after successful submission of the Autofill dialog. | 485 // A bubble that shows after successfully generating a new credit card number. |
486 AutofillCreditCardView* autofill_credit_card_view_; | 486 GeneratedCreditCardView* generated_credit_card_view_; |
487 | 487 |
488 // The icon to open a PDF in Reader. | 488 // The icon to open a PDF in Reader. |
489 OpenPDFInReaderView* open_pdf_in_reader_view_; | 489 OpenPDFInReaderView* open_pdf_in_reader_view_; |
490 | 490 |
491 // The current page actions. | 491 // The current page actions. |
492 std::vector<ExtensionAction*> page_actions_; | 492 std::vector<ExtensionAction*> page_actions_; |
493 | 493 |
494 // The page action icon views. | 494 // The page action icon views. |
495 PageActionViews page_action_views_; | 495 PageActionViews page_action_views_; |
496 | 496 |
(...skipping 23 matching lines...) Expand all Loading... |
520 // in the right location. | 520 // in the right location. |
521 int animation_offset_; | 521 int animation_offset_; |
522 | 522 |
523 // Used to register for notifications received by NotificationObserver. | 523 // Used to register for notifications received by NotificationObserver. |
524 content::NotificationRegistrar registrar_; | 524 content::NotificationRegistrar registrar_; |
525 | 525 |
526 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 526 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
527 }; | 527 }; |
528 | 528 |
529 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 529 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |