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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: renamed method Created 8 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
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 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "chrome/browser/autocomplete_history_manager.h" 9 #include "chrome/browser/autocomplete_history_manager.h"
10 #include "chrome/browser/autofill/autofill_external_delegate.h" 10 #include "chrome/browser/autofill/autofill_external_delegate.h"
11 #include "chrome/browser/autofill/autofill_manager.h" 11 #include "chrome/browser/autofill/autofill_manager.h"
12 #include "chrome/browser/automation/automation_tab_helper.h" 12 #include "chrome/browser/automation/automation_tab_helper.h"
13 #include "chrome/browser/color_select_observer.h"
13 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
14 #include "chrome/browser/download/download_request_limiter_observer.h" 15 #include "chrome/browser/download/download_request_limiter_observer.h"
15 #include "chrome/browser/extensions/extension_tab_helper.h" 16 #include "chrome/browser/extensions/extension_tab_helper.h"
16 #include "chrome/browser/extensions/extension_webnavigation_api.h" 17 #include "chrome/browser/extensions/extension_webnavigation_api.h"
17 #include "chrome/browser/external_protocol/external_protocol_observer.h" 18 #include "chrome/browser/external_protocol/external_protocol_observer.h"
18 #include "chrome/browser/favicon/favicon_tab_helper.h" 19 #include "chrome/browser/favicon/favicon_tab_helper.h"
19 #include "chrome/browser/history/history_tab_helper.h" 20 #include "chrome/browser/history/history_tab_helper.h"
20 #include "chrome/browser/infobars/infobar_tab_helper.h" 21 #include "chrome/browser/infobars/infobar_tab_helper.h"
21 #include "chrome/browser/omnibox_search_hint.h" 22 #include "chrome/browser/omnibox_search_hint.h"
22 #include "chrome/browser/password_manager/password_manager.h" 23 #include "chrome/browser/password_manager/password_manager.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 ssl_helper_.reset(new TabContentsSSLHelper(this)); 104 ssl_helper_.reset(new TabContentsSSLHelper(this));
104 synced_tab_delegate_.reset(new TabContentsWrapperSyncedTabDelegate(this)); 105 synced_tab_delegate_.reset(new TabContentsWrapperSyncedTabDelegate(this));
105 content_settings_.reset(new TabSpecificContentSettings(contents)); 106 content_settings_.reset(new TabSpecificContentSettings(contents));
106 translate_tab_helper_.reset(new TranslateTabHelper(contents)); 107 translate_tab_helper_.reset(new TranslateTabHelper(contents));
107 web_intent_picker_controller_.reset(new WebIntentPickerController( 108 web_intent_picker_controller_.reset(new WebIntentPickerController(
108 this, new WebIntentPickerFactoryImpl())); 109 this, new WebIntentPickerFactoryImpl()));
109 110
110 // Create the per-tab observers. 111 // Create the per-tab observers.
111 alternate_error_page_tab_observer_.reset( 112 alternate_error_page_tab_observer_.reset(
112 new AlternateErrorPageTabObserver(contents)); 113 new AlternateErrorPageTabObserver(contents));
114 color_select_observer_.reset(new ColorSelectObserver(contents));
113 download_request_limiter_observer_.reset( 115 download_request_limiter_observer_.reset(
114 new DownloadRequestLimiterObserver(contents)); 116 new DownloadRequestLimiterObserver(contents));
115 webnavigation_observer_.reset( 117 webnavigation_observer_.reset(
116 new ExtensionWebNavigationTabObserver(contents)); 118 new ExtensionWebNavigationTabObserver(contents));
117 external_protocol_observer_.reset(new ExternalProtocolObserver(contents)); 119 external_protocol_observer_.reset(new ExternalProtocolObserver(contents));
118 if (OmniboxSearchHint::IsEnabled(profile())) 120 if (OmniboxSearchHint::IsEnabled(profile()))
119 omnibox_search_hint_.reset(new OmniboxSearchHint(this)); 121 omnibox_search_hint_.reset(new OmniboxSearchHint(this));
120 pdf_tab_observer_.reset(new PDFTabObserver(this)); 122 pdf_tab_observer_.reset(new PDFTabObserver(this));
121 plugin_observer_.reset(new PluginObserver(this)); 123 plugin_observer_.reset(new PluginObserver(this));
122 print_preview_.reset(new printing::PrintPreviewMessageHandler(contents)); 124 print_preview_.reset(new printing::PrintPreviewMessageHandler(contents));
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 186
185 //////////////////////////////////////////////////////////////////////////////// 187 ////////////////////////////////////////////////////////////////////////////////
186 // WebContentsObserver overrides 188 // WebContentsObserver overrides
187 189
188 void TabContentsWrapper::WebContentsDestroyed(WebContents* tab) { 190 void TabContentsWrapper::WebContentsDestroyed(WebContents* tab) {
189 // Destruction of the WebContents should only be done by us from our 191 // Destruction of the WebContents should only be done by us from our
190 // destructor. Otherwise it's very likely we (or one of the helpers we own) 192 // destructor. Otherwise it's very likely we (or one of the helpers we own)
191 // will attempt to access the TabContents and we'll crash. 193 // will attempt to access the TabContents and we'll crash.
192 DCHECK(in_destructor_); 194 DCHECK(in_destructor_);
193 } 195 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698