| 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/ui/bookmarks/bookmark_editor.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
| 11 #include "components/security_state/security_state_model.h" | 11 #include "components/security_state/security_state_model.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 #if defined(OS_MACOSX) |
| 121 |
| 122 // This is a class so that it can be friended from ContentSettingBubbleContents, |
| 123 // which allows it to call SetAnchorRect(). |
| 124 class ContentSettingBubbleViewsBridge { |
| 125 public: |
| 126 static void Show(gfx::NativeView parent_view, |
| 127 ContentSettingBubbleModel* model, |
| 128 content::WebContents* web_contents, |
| 129 const gfx::Point& anchor); |
| 130 private: |
| 131 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); |
| 132 }; |
| 133 |
| 134 #endif // OS_MACOSX |
| 135 |
| 119 #endif // TOOLKIT_VIEWS | 136 #endif // TOOLKIT_VIEWS |
| 120 | 137 |
| 121 } // namespace chrome | 138 } // namespace chrome |
| 122 | 139 |
| 123 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 140 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |