Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 1870533002: Convert ContentSettingBubbleContents to a BubbleDialogDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac views Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/content_setting_image_view.cc ('k') | chrome/browser/ui/views/toolbar/toolbar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698