| 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> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class StarView; | 47 class StarView; |
| 48 class TemplateURLService; | 48 class TemplateURLService; |
| 49 class TranslateIconView; | 49 class TranslateIconView; |
| 50 class ZoomView; | 50 class ZoomView; |
| 51 | 51 |
| 52 namespace autofill { | 52 namespace autofill { |
| 53 class SaveCardIconView; | 53 class SaveCardIconView; |
| 54 } | 54 } |
| 55 | 55 |
| 56 namespace views { | 56 namespace views { |
| 57 class BubbleDelegateView; | |
| 58 class Label; | 57 class Label; |
| 59 class Widget; | 58 class Widget; |
| 60 } | 59 } |
| 61 | 60 |
| 62 ///////////////////////////////////////////////////////////////////////////// | 61 ///////////////////////////////////////////////////////////////////////////// |
| 63 // | 62 // |
| 64 // LocationBarView class | 63 // LocationBarView class |
| 65 // | 64 // |
| 66 // The LocationBarView class is a View subclass that paints the background | 65 // The LocationBarView class is a View subclass that paints the background |
| 67 // of the URL bar strip and contains its content. | 66 // of the URL bar strip and contains its content. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 78 public ui_zoom::ZoomEventManagerObserver { | 77 public ui_zoom::ZoomEventManagerObserver { |
| 79 public: | 78 public: |
| 80 class Delegate { | 79 class Delegate { |
| 81 public: | 80 public: |
| 82 // Should return the current web contents. | 81 // Should return the current web contents. |
| 83 virtual content::WebContents* GetWebContents() = 0; | 82 virtual content::WebContents* GetWebContents() = 0; |
| 84 | 83 |
| 85 virtual ToolbarModel* GetToolbarModel() = 0; | 84 virtual ToolbarModel* GetToolbarModel() = 0; |
| 86 virtual const ToolbarModel* GetToolbarModel() const = 0; | 85 virtual const ToolbarModel* GetToolbarModel() const = 0; |
| 87 | 86 |
| 88 // Creates Widget for the given delegate. | |
| 89 virtual views::Widget* CreateViewsBubble( | |
| 90 views::BubbleDelegateView* bubble_delegate) = 0; | |
| 91 | |
| 92 // Creates PageActionImageView. Caller gets an ownership. | 87 // Creates PageActionImageView. Caller gets an ownership. |
| 93 virtual PageActionImageView* CreatePageActionImageView( | 88 virtual PageActionImageView* CreatePageActionImageView( |
| 94 LocationBarView* owner, | 89 LocationBarView* owner, |
| 95 ExtensionAction* action) = 0; | 90 ExtensionAction* action) = 0; |
| 96 | 91 |
| 97 // Returns ContentSettingBubbleModelDelegate. | 92 // Returns ContentSettingBubbleModelDelegate. |
| 98 virtual ContentSettingBubbleModelDelegate* | 93 virtual ContentSettingBubbleModelDelegate* |
| 99 GetContentSettingBubbleModelDelegate() = 0; | 94 GetContentSettingBubbleModelDelegate() = 0; |
| 100 | 95 |
| 101 // Shows permissions and settings for the given web contents. | 96 // Shows permissions and settings for the given web contents. |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 BooleanPrefMember edit_bookmarks_enabled_; | 469 BooleanPrefMember edit_bookmarks_enabled_; |
| 475 | 470 |
| 476 // This is a debug state variable that stores if the WebContents was null | 471 // This is a debug state variable that stores if the WebContents was null |
| 477 // during the last RefreshPageAction. | 472 // during the last RefreshPageAction. |
| 478 bool web_contents_null_at_last_refresh_; | 473 bool web_contents_null_at_last_refresh_; |
| 479 | 474 |
| 480 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 475 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 481 }; | 476 }; |
| 482 | 477 |
| 483 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 478 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |