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

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

Issue 11633052: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gtk_widget_get_toplevel for GetNativeWindow Created 7 years, 11 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
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/prefs/public/pref_change_registrar.h" 18 #include "base/prefs/public/pref_change_registrar.h"
19 #include "base/prefs/public/pref_member.h" 19 #include "base/prefs/public/pref_member.h"
20 #include "base/string16.h" 20 #include "base/string16.h"
21 #include "chrome/browser/debugger/devtools_toggle_action.h" 21 #include "chrome/browser/debugger/devtools_toggle_action.h"
22 #include "chrome/browser/event_disposition.h" 22 #include "chrome/browser/event_disposition.h"
23 #include "chrome/browser/sessions/session_id.h" 23 #include "chrome/browser/sessions/session_id.h"
24 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h" 24 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h"
25 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 25 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
26 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" 26 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h"
27 #include "chrome/browser/ui/browser_navigator.h" 27 #include "chrome/browser/ui/browser_navigator.h"
28 #include "chrome/browser/ui/constrained_window_tab_helper_delegate.h"
29 #include "chrome/browser/ui/host_desktop.h" 28 #include "chrome/browser/ui/host_desktop.h"
30 #include "chrome/browser/ui/search/search_model_observer.h" 29 #include "chrome/browser/ui/search/search_model_observer.h"
31 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" 30 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
32 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" 31 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h"
33 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 32 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
34 #include "chrome/browser/ui/toolbar/toolbar_model.h" 33 #include "chrome/browser/ui/toolbar/toolbar_model.h"
34 #include "chrome/browser/ui/web_contents_modal_dialog_manager_delegate.h"
35 #include "chrome/browser/ui/zoom/zoom_observer.h" 35 #include "chrome/browser/ui/zoom/zoom_observer.h"
36 #include "chrome/common/content_settings.h" 36 #include "chrome/common/content_settings.h"
37 #include "chrome/common/content_settings_types.h" 37 #include "chrome/common/content_settings_types.h"
38 #include "chrome/common/extensions/extension_constants.h" 38 #include "chrome/common/extensions/extension_constants.h"
39 #include "content/public/browser/notification_observer.h" 39 #include "content/public/browser/notification_observer.h"
40 #include "content/public/browser/notification_registrar.h" 40 #include "content/public/browser/notification_registrar.h"
41 #include "content/public/browser/page_navigator.h" 41 #include "content/public/browser/page_navigator.h"
42 #include "content/public/browser/web_contents_delegate.h" 42 #include "content/public/browser/web_contents_delegate.h"
43 #include "content/public/common/page_transition_types.h" 43 #include "content/public/common/page_transition_types.h"
44 #include "content/public/common/page_zoom.h" 44 #include "content/public/common/page_zoom.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 namespace webkit_glue { 96 namespace webkit_glue {
97 struct WebIntentServiceData; 97 struct WebIntentServiceData;
98 } 98 }
99 99
100 class Browser : public TabStripModelObserver, 100 class Browser : public TabStripModelObserver,
101 public content::WebContentsDelegate, 101 public content::WebContentsDelegate,
102 public CoreTabHelperDelegate, 102 public CoreTabHelperDelegate,
103 public SearchEngineTabHelperDelegate, 103 public SearchEngineTabHelperDelegate,
104 public ConstrainedWindowTabHelperDelegate, 104 public WebContentsModalDialogManagerDelegate,
105 public BlockedContentTabHelperDelegate, 105 public BlockedContentTabHelperDelegate,
106 public BookmarkTabHelperDelegate, 106 public BookmarkTabHelperDelegate,
107 public ZoomObserver, 107 public ZoomObserver,
108 public content::PageNavigator, 108 public content::PageNavigator,
109 public content::NotificationObserver, 109 public content::NotificationObserver,
110 public ui::SelectFileDialog::Listener, 110 public ui::SelectFileDialog::Listener,
111 public chrome::search::SearchModelObserver { 111 public chrome::search::SearchModelObserver {
112 public: 112 public:
113 // SessionService::WindowType mirrors these values. If you add to this 113 // SessionService::WindowType mirrors these values. If you add to this
114 // enum, look at SessionService::WindowType to see if it needs to be 114 // enum, look at SessionService::WindowType to see if it needs to be
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 content::WebContents* new_contents) OVERRIDE; 673 content::WebContents* new_contents) OVERRIDE;
674 virtual bool CanReloadContents( 674 virtual bool CanReloadContents(
675 content::WebContents* web_contents) const OVERRIDE; 675 content::WebContents* web_contents) const OVERRIDE;
676 virtual bool CanSaveContents( 676 virtual bool CanSaveContents(
677 content::WebContents* web_contents) const OVERRIDE; 677 content::WebContents* web_contents) const OVERRIDE;
678 678
679 // Overridden from SearchEngineTabHelperDelegate: 679 // Overridden from SearchEngineTabHelperDelegate:
680 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, 680 virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
681 Profile* profile) OVERRIDE; 681 Profile* profile) OVERRIDE;
682 682
683 // Overridden from ConstrainedWindowTabHelperDelegate: 683 // Overridden from WebContentsModalDialogManagerDelegate:
684 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 684 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
685 bool blocked) OVERRIDE; 685 bool blocked) OVERRIDE;
686 virtual bool GetDialogTopCenter(gfx::Point* point) OVERRIDE; 686 virtual bool GetDialogTopCenter(gfx::Point* point) OVERRIDE;
687 687
688 // Overridden from BlockedContentTabHelperDelegate: 688 // Overridden from BlockedContentTabHelperDelegate:
689 virtual content::WebContents* GetConstrainingWebContents( 689 virtual content::WebContents* GetConstrainingWebContents(
690 content::WebContents* source) OVERRIDE; 690 content::WebContents* source) OVERRIDE;
691 691
692 // Overridden from BookmarkTabHelperDelegate: 692 // Overridden from BookmarkTabHelperDelegate:
693 virtual void URLStarredChanged(content::WebContents* web_contents, 693 virtual void URLStarredChanged(content::WebContents* web_contents,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 bool window_has_shown_; 960 bool window_has_shown_;
961 961
962 // Currently open color chooser. Non-NULL after OpenColorChooser is called and 962 // Currently open color chooser. Non-NULL after OpenColorChooser is called and
963 // before DidEndColorChooser is called. 963 // before DidEndColorChooser is called.
964 scoped_ptr<content::ColorChooser> color_chooser_; 964 scoped_ptr<content::ColorChooser> color_chooser_;
965 965
966 DISALLOW_COPY_AND_ASSIGN(Browser); 966 DISALLOW_COPY_AND_ASSIGN(Browser);
967 }; 967 };
968 968
969 #endif // CHROME_BROWSER_UI_BROWSER_H_ 969 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_browser_tests.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698