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

Side by Side Diff: chrome/browser/ui/browser_dialogs.h

Issue 1922683003: Make old task manager tests work against new task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix OSX function call namespace Created 4 years, 7 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_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 24 matching lines...) Expand all
35 namespace gfx { 35 namespace gfx {
36 class Point; 36 class Point;
37 } 37 }
38 38
39 namespace net { 39 namespace net {
40 class AuthChallengeInfo; 40 class AuthChallengeInfo;
41 class URLRequest; 41 class URLRequest;
42 } 42 }
43 43
44 namespace ui { 44 namespace ui {
45 class TableModel;
45 class WebDialogDelegate; 46 class WebDialogDelegate;
46 } 47 }
47 48
48 namespace chrome { 49 namespace chrome {
49 50
50 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash. 51 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash.
51 void ShowTaskManager(Browser* browser); 52 // Returns a pointer to the underlying TableModel, which can be ignored, or used
53 // for testing.
54 ui::TableModel* ShowTaskManager(Browser* browser);
52 void HideTaskManager(); 55 void HideTaskManager();
53 56
54 #if !defined(OS_MACOSX) 57 #if !defined(OS_MACOSX)
55 // Creates and shows an HTML dialog with the given delegate and context. 58 // Creates and shows an HTML dialog with the given delegate and context.
56 // The window is automatically destroyed when it is closed. 59 // The window is automatically destroyed when it is closed.
57 // Returns the created window. 60 // Returns the created window.
58 // 61 //
59 // Make sure to use the returned window only when you know it is safe 62 // Make sure to use the returned window only when you know it is safe
60 // to do so, i.e. before OnDialogClosed() is called on the delegate. 63 // to do so, i.e. before OnDialogClosed() is called on the delegate.
61 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent, 64 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu 105 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu
103 // or via a key equivalent. 106 // or via a key equivalent.
104 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, 107 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point,
105 gfx::NativeView parent, 108 gfx::NativeView parent,
106 bookmarks::BookmarkBubbleObserver* observer, 109 bookmarks::BookmarkBubbleObserver* observer,
107 Browser* browser, 110 Browser* browser,
108 const GURL& url, 111 const GURL& url,
109 bool newly_bookmarked); 112 bool newly_bookmarked);
110 113
111 // 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.
112 void ShowTaskManagerViews(Browser* browser); 115 ui::TableModel* ShowTaskManagerViews(Browser* browser);
113 void HideTaskManagerViews(); 116 void HideTaskManagerViews();
114 117
115 #endif // OS_MACOSX 118 #endif // OS_MACOSX
116 119
117 #if defined(TOOLKIT_VIEWS) 120 #if defined(TOOLKIT_VIEWS)
118 121
119 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). 122 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog).
120 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, 123 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info,
121 net::URLRequest* request); 124 net::URLRequest* request);
122 125
(...skipping 17 matching lines...) Expand all
140 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); 143 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge);
141 }; 144 };
142 145
143 #endif // OS_MACOSX 146 #endif // OS_MACOSX
144 147
145 #endif // TOOLKIT_VIEWS 148 #endif // TOOLKIT_VIEWS
146 149
147 } // namespace chrome 150 } // namespace chrome
148 151
149 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 152 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager_browsertest_util.cc ('k') | chrome/browser/ui/cocoa/task_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698