| 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" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 gfx::NativeView parent, | 108 gfx::NativeView parent, |
| 109 bookmarks::BookmarkBubbleObserver* observer, | 109 bookmarks::BookmarkBubbleObserver* observer, |
| 110 Browser* browser, | 110 Browser* browser, |
| 111 const GURL& url, | 111 const GURL& url, |
| 112 bool newly_bookmarked); | 112 bool newly_bookmarked); |
| 113 | 113 |
| 114 // Bridging methods that show/hide the toolkit-views based Task Manager on Mac. | 114 // Bridging methods that show/hide the toolkit-views based Task Manager on Mac. |
| 115 ui::TableModel* ShowTaskManagerViews(Browser* browser); | 115 ui::TableModel* ShowTaskManagerViews(Browser* browser); |
| 116 void HideTaskManagerViews(); | 116 void HideTaskManagerViews(); |
| 117 | 117 |
| 118 // Notifies the old task manager with network bytes read events when the Mac |
| 119 // views are not used. |
| 120 bool NotifyOldTaskManagerBytesRead(const net::URLRequest& request, |
| 121 int64_t bytes_read); |
| 122 |
| 118 #endif // OS_MACOSX | 123 #endif // OS_MACOSX |
| 119 | 124 |
| 120 #if defined(TOOLKIT_VIEWS) | 125 #if defined(TOOLKIT_VIEWS) |
| 121 | 126 |
| 122 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). | 127 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). |
| 123 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, | 128 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, |
| 124 net::URLRequest* request); | 129 net::URLRequest* request); |
| 125 | 130 |
| 126 // Shows the toolkit-views based BookmarkEditor. | 131 // Shows the toolkit-views based BookmarkEditor. |
| 127 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, | 132 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 143 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); | 148 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); |
| 144 }; | 149 }; |
| 145 | 150 |
| 146 #endif // OS_MACOSX | 151 #endif // OS_MACOSX |
| 147 | 152 |
| 148 #endif // TOOLKIT_VIEWS | 153 #endif // TOOLKIT_VIEWS |
| 149 | 154 |
| 150 } // namespace chrome | 155 } // namespace chrome |
| 151 | 156 |
| 152 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 157 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |