| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "chrome/browser/extensions/extension_context_menu_model.h" | 15 #include "chrome/browser/extensions/extension_context_menu_model.h" |
| 16 #include "chrome/browser/ui/location_bar/location_bar.h" | 16 #include "chrome/browser/ui/location_bar/location_bar.h" |
| 17 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" | 17 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" |
| 18 #include "chrome/browser/ui/views/dropdown_bar_host.h" | 18 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
| 19 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" | 19 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" |
| 20 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 20 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
| 21 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" | 21 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" |
| 22 #include "components/prefs/pref_member.h" | 22 #include "components/prefs/pref_member.h" |
| 23 #include "components/search_engines/template_url_service_observer.h" | 23 #include "components/search_engines/template_url_service_observer.h" |
| 24 #include "components/security_state/security_state_model.h" | 24 #include "components/security_state/security_state_model.h" |
| 25 #include "components/ui/zoom/zoom_event_manager_observer.h" | 25 #include "components/zoom/zoom_event_manager_observer.h" |
| 26 #include "ui/gfx/animation/animation_delegate.h" | 26 #include "ui/gfx/animation/animation_delegate.h" |
| 27 #include "ui/gfx/animation/slide_animation.h" | 27 #include "ui/gfx/animation/slide_animation.h" |
| 28 #include "ui/gfx/font.h" | 28 #include "ui/gfx/font.h" |
| 29 #include "ui/gfx/geometry/rect.h" | 29 #include "ui/gfx/geometry/rect.h" |
| 30 #include "ui/views/drag_controller.h" | 30 #include "ui/views/drag_controller.h" |
| 31 | 31 |
| 32 class ActionBoxButtonView; | 32 class ActionBoxButtonView; |
| 33 class CommandUpdater; | 33 class CommandUpdater; |
| 34 class ContentSettingBubbleModelDelegate; | 34 class ContentSettingBubbleModelDelegate; |
| 35 class ContentSettingImageView; | 35 class ContentSettingImageView; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // | 67 // |
| 68 ///////////////////////////////////////////////////////////////////////////// | 68 ///////////////////////////////////////////////////////////////////////////// |
| 69 class LocationBarView : public LocationBar, | 69 class LocationBarView : public LocationBar, |
| 70 public LocationBarTesting, | 70 public LocationBarTesting, |
| 71 public views::View, | 71 public views::View, |
| 72 public views::DragController, | 72 public views::DragController, |
| 73 public gfx::AnimationDelegate, | 73 public gfx::AnimationDelegate, |
| 74 public ChromeOmniboxEditController, | 74 public ChromeOmniboxEditController, |
| 75 public DropdownBarHostDelegate, | 75 public DropdownBarHostDelegate, |
| 76 public TemplateURLServiceObserver, | 76 public TemplateURLServiceObserver, |
| 77 public ui_zoom::ZoomEventManagerObserver { | 77 public zoom::ZoomEventManagerObserver { |
| 78 public: | 78 public: |
| 79 class Delegate { | 79 class Delegate { |
| 80 public: | 80 public: |
| 81 // Should return the current web contents. | 81 // Should return the current web contents. |
| 82 virtual content::WebContents* GetWebContents() = 0; | 82 virtual content::WebContents* GetWebContents() = 0; |
| 83 | 83 |
| 84 virtual ToolbarModel* GetToolbarModel() = 0; | 84 virtual ToolbarModel* GetToolbarModel() = 0; |
| 85 virtual const ToolbarModel* GetToolbarModel() const = 0; | 85 virtual const ToolbarModel* GetToolbarModel() const = 0; |
| 86 | 86 |
| 87 // Creates PageActionImageView. Caller gets an ownership. | 87 // Creates PageActionImageView. Caller gets an ownership. |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 BooleanPrefMember edit_bookmarks_enabled_; | 468 BooleanPrefMember edit_bookmarks_enabled_; |
| 469 | 469 |
| 470 // This is a debug state variable that stores if the WebContents was null | 470 // This is a debug state variable that stores if the WebContents was null |
| 471 // during the last RefreshPageAction. | 471 // during the last RefreshPageAction. |
| 472 bool web_contents_null_at_last_refresh_; | 472 bool web_contents_null_at_last_refresh_; |
| 473 | 473 |
| 474 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 474 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 475 }; | 475 }; |
| 476 | 476 |
| 477 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 477 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |