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

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

Issue 8865004: Create CoreTabHelper, move remaining core TCW functionality into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 22 matching lines...) Expand all
33 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h" 33 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h"
34 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 34 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
35 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h" 35 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_delegate.h"
36 #include "chrome/browser/ui/browser_navigator.h" 36 #include "chrome/browser/ui/browser_navigator.h"
37 #include "chrome/browser/ui/constrained_window_tab_helper_delegate.h" 37 #include "chrome/browser/ui/constrained_window_tab_helper_delegate.h"
38 #include "chrome/browser/ui/dialog_style.h" 38 #include "chrome/browser/ui/dialog_style.h"
39 #include "chrome/browser/ui/fullscreen_controller.h" 39 #include "chrome/browser/ui/fullscreen_controller.h"
40 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 40 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
41 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" 41 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
42 #include "chrome/browser/ui/select_file_dialog.h" 42 #include "chrome/browser/ui/select_file_dialog.h"
43 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" 43 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h"
44 #include "chrome/browser/ui/toolbar/toolbar_model.h" 44 #include "chrome/browser/ui/toolbar/toolbar_model.h"
45 #include "chrome/common/content_settings.h" 45 #include "chrome/common/content_settings.h"
46 #include "chrome/common/content_settings_types.h" 46 #include "chrome/common/content_settings_types.h"
47 #include "chrome/common/extensions/extension_constants.h" 47 #include "chrome/common/extensions/extension_constants.h"
48 #include "content/browser/tab_contents/page_navigator.h" 48 #include "content/browser/tab_contents/page_navigator.h"
49 #include "content/browser/tab_contents/tab_contents_delegate.h" 49 #include "content/browser/tab_contents/tab_contents_delegate.h"
50 #include "content/public/browser/notification_registrar.h" 50 #include "content/public/browser/notification_registrar.h"
51 #include "content/public/common/page_transition_types.h" 51 #include "content/public/common/page_transition_types.h"
52 #include "content/public/common/page_zoom.h" 52 #include "content/public/common/page_zoom.h"
53 #include "ui/base/ui_base_types.h" 53 #include "ui/base/ui_base_types.h"
(...skipping 15 matching lines...) Expand all
69 class StatusBubble; 69 class StatusBubble;
70 class TabNavigation; 70 class TabNavigation;
71 class TabStripModel; 71 class TabStripModel;
72 struct WebApplicationInfo; 72 struct WebApplicationInfo;
73 namespace gfx { 73 namespace gfx {
74 class Point; 74 class Point;
75 } 75 }
76 76
77 class Browser : public TabHandlerDelegate, 77 class Browser : public TabHandlerDelegate,
78 public TabContentsDelegate, 78 public TabContentsDelegate,
79 public TabContentsWrapperDelegate, 79 public CoreTabHelperDelegate,
80 public SearchEngineTabHelperDelegate, 80 public SearchEngineTabHelperDelegate,
81 public ConstrainedWindowTabHelperDelegate, 81 public ConstrainedWindowTabHelperDelegate,
82 public BlockedContentTabHelperDelegate, 82 public BlockedContentTabHelperDelegate,
83 public BookmarkTabHelperDelegate, 83 public BookmarkTabHelperDelegate,
84 public ExtensionTabHelperDelegate, 84 public ExtensionTabHelperDelegate,
85 public PageNavigator, 85 public PageNavigator,
86 public CommandUpdater::CommandUpdaterDelegate, 86 public CommandUpdater::CommandUpdaterDelegate,
87 public content::NotificationObserver, 87 public content::NotificationObserver,
88 public SelectFileDialog::Listener, 88 public SelectFileDialog::Listener,
89 public TabRestoreServiceObserver, 89 public TabRestoreServiceObserver,
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 const gfx::Rect& selection_rect, 1015 const gfx::Rect& selection_rect,
1016 int active_match_ordinal, 1016 int active_match_ordinal,
1017 bool final_update) OVERRIDE; 1017 bool final_update) OVERRIDE;
1018 1018
1019 virtual void CrashedPlugin(TabContents* tab, 1019 virtual void CrashedPlugin(TabContents* tab,
1020 const FilePath& plugin_path) OVERRIDE; 1020 const FilePath& plugin_path) OVERRIDE;
1021 1021
1022 virtual void RequestToLockMouse(TabContents* tab) OVERRIDE; 1022 virtual void RequestToLockMouse(TabContents* tab) OVERRIDE;
1023 virtual void LostMouseLock() OVERRIDE; 1023 virtual void LostMouseLock() OVERRIDE;
1024 1024
1025 // Overridden from TabContentsWrapperDelegate: 1025 // Overridden from CoreTabHelperDelegate:
1026 // Note that the caller is responsible for deleting |old_tab_contents|. 1026 // Note that the caller is responsible for deleting |old_tab_contents|.
1027 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents, 1027 virtual void SwapTabContents(TabContentsWrapper* old_tab_contents,
1028 TabContentsWrapper* new_tab_contents) OVERRIDE; 1028 TabContentsWrapper* new_tab_contents) OVERRIDE;
1029 1029
1030 // Overridden from SearchEngineTabHelperDelegate: 1030 // Overridden from SearchEngineTabHelperDelegate:
1031 virtual void ConfirmSetDefaultSearchProvider(TabContents* tab_contents, 1031 virtual void ConfirmSetDefaultSearchProvider(TabContents* tab_contents,
1032 TemplateURL* template_url, 1032 TemplateURL* template_url,
1033 Profile* profile) OVERRIDE; 1033 Profile* profile) OVERRIDE;
1034 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, 1034 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
1035 Profile* profile) OVERRIDE; 1035 Profile* profile) OVERRIDE;
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 1428
1429 scoped_refptr<FullscreenController> fullscreen_controller_; 1429 scoped_refptr<FullscreenController> fullscreen_controller_;
1430 1430
1431 // True if the browser window has been shown at least once. 1431 // True if the browser window has been shown at least once.
1432 bool window_has_shown_; 1432 bool window_has_shown_;
1433 1433
1434 DISALLOW_COPY_AND_ASSIGN(Browser); 1434 DISALLOW_COPY_AND_ASSIGN(Browser);
1435 }; 1435 };
1436 1436
1437 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1437 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698