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_BROWSER_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/ssl/security_state_model.h" | 10 #include "chrome/browser/ssl/security_state_model.h" |
11 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 11 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 class Browser; | 15 class Browser; |
16 class ContentSettingBubbleModel; | |
16 class GURL; | 17 class GURL; |
17 class LoginHandler; | 18 class LoginHandler; |
18 class Profile; | 19 class Profile; |
19 | 20 |
20 namespace bookmarks { | 21 namespace bookmarks { |
21 class BookmarkBubbleObserver; | 22 class BookmarkBubbleObserver; |
22 } | 23 } |
23 | 24 |
24 namespace content { | 25 namespace content { |
25 class BrowserContext; | 26 class BrowserContext; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). | 110 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). |
110 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, | 111 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, |
111 net::URLRequest* request); | 112 net::URLRequest* request); |
112 | 113 |
113 // Shows the toolkit-views based BookmarkEditor. | 114 // Shows the toolkit-views based BookmarkEditor. |
114 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, | 115 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
115 Profile* profile, | 116 Profile* profile, |
116 const BookmarkEditor::EditDetails& details, | 117 const BookmarkEditor::EditDetails& details, |
117 BookmarkEditor::Configuration configuration); | 118 BookmarkEditor::Configuration configuration); |
118 | 119 |
120 // This is a class so that it can be friended from ContentSettingBubbleContents, | |
121 // which allows it to call SetAnchorRect(). | |
122 class ContentSettingBubbleViewsBridge { | |
tapted
2016/01/11 23:21:38
I think this should be up in the #if defined(OS_MA
Elly Fong-Jones
2016/01/12 14:09:59
I think it also needs to be inside the TOOLKIT_VIE
| |
123 public: | |
124 static void Show(gfx::NativeView parent_view, | |
125 ContentSettingBubbleModel* model, | |
126 content::WebContents* web_contents, | |
127 const gfx::Point& anchor); | |
128 private: | |
129 ContentSettingBubbleViewsBridge(); | |
tapted
2016/01/11 23:21:38
DISALLOW_IMPLICIT_CONSTRUCTORS(..)
Elly Fong-Jones
2016/01/12 14:09:59
Done.
| |
130 }; | |
131 | |
119 #endif // TOOLKIT_VIEWS | 132 #endif // TOOLKIT_VIEWS |
120 | 133 |
121 } // namespace chrome | 134 } // namespace chrome |
122 | 135 |
123 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 136 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |