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

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

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 6 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 | Annotate | Revision Log
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_BROWSER_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 // This file contains functions for running a variety of browser dialogs and 13 // This file contains functions for running a variety of browser dialogs and
14 // popups. The dialogs here are the ones that the caller does not need to 14 // popups. The dialogs here are the ones that the caller does not need to
15 // access the class of the popup. It allows us to break dependencies by 15 // access the class of the popup. It allows us to break dependencies by
16 // allowing the callers to not depend on the classes implementing the dialogs. 16 // allowing the callers to not depend on the classes implementing the dialogs.
17 // TODO: Make as many of these methods as possible cross platform, and move them 17 // TODO: Make as many of these methods as possible cross platform, and move them
18 // into chrome/browser/ui/browser_dialogs.h. 18 // into chrome/browser/ui/browser_dialogs.h.
19 19
20 class BrowserView; 20 class BrowserView;
21 class EditSearchEngineControllerDelegate; 21 class EditSearchEngineControllerDelegate;
22 class FindBar; 22 class FindBar;
23 class GURL; 23 class GURL;
24 class Profile; 24 class Profile;
25 class TabContents; 25 class TabContents;
26 class TemplateURL; 26 class TemplateURL;
27 27
28 namespace content { 28 namespace content {
29 class PageNavigator; 29 class PageNavigator;
30 class WebContents;
30 struct SSLStatus; 31 struct SSLStatus;
31 } 32 }
32 33
33 namespace extensions { 34 namespace extensions {
34 class Extension; 35 class Extension;
35 } 36 }
36 37
37 namespace gfx { 38 namespace gfx {
38 class Size; 39 class Size;
39 } 40 }
(...skipping 13 matching lines...) Expand all
53 void HideBookmarkBubbleView(); 54 void HideBookmarkBubbleView();
54 bool IsBookmarkBubbleViewShowing(); 55 bool IsBookmarkBubbleViewShowing();
55 56
56 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view. 57 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view.
57 void ShowChromeToMobileBubbleView(views::View* anchor_view, Profile* profile); 58 void ShowChromeToMobileBubbleView(views::View* anchor_view, Profile* profile);
58 void HideChromeToMobileBubbleView(); 59 void HideChromeToMobileBubbleView();
59 bool IsChromeToMobileBubbleViewShowing(); 60 bool IsChromeToMobileBubbleViewShowing();
60 61
61 // Shows the page info bubble anchored to the supplied view. 62 // Shows the page info bubble anchored to the supplied view.
62 void ShowPageInfoBubble(views::View* anchor_view, 63 void ShowPageInfoBubble(views::View* anchor_view,
63 Profile* profile, 64 content::WebContents* web_contents,
64 const GURL& url, 65 const GURL& url,
65 const content::SSLStatus& ssl, 66 const content::SSLStatus& ssl,
66 bool show_history, 67 bool show_history,
67 content::PageNavigator* navigator); 68 content::PageNavigator* navigator);
68 69
69 // Shows the about dialog. See AboutChromeView. 70 // Shows the about dialog. See AboutChromeView.
70 views::Widget* ShowAboutChromeView(gfx::NativeWindow parent, 71 views::Widget* ShowAboutChromeView(gfx::NativeWindow parent,
71 Profile* profile); 72 Profile* profile);
72 73
73 // Creates and returns a find bar for the given browser window. See FindBarWin. 74 // Creates and returns a find bar for the given browser window. See FindBarWin.
(...skipping 20 matching lines...) Expand all
94 TabContents* tab_contents); 95 TabContents* tab_contents);
95 96
96 // Shows the create chrome app shortcut dialog box. 97 // Shows the create chrome app shortcut dialog box.
97 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, 98 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window,
98 Profile* profile, 99 Profile* profile,
99 const extensions::Extension* app); 100 const extensions::Extension* app);
100 101
101 } // namespace browser 102 } // namespace browser
102 103
103 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ 104 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window.cc ('k') | chrome/browser/ui/views/certificate_viewer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698