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

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

Issue 10444040: Tracks changes to zoom icon and zoom percentage. Notifies browser window if the icon should be chan… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 28 matching lines...) Expand all
39 class Profile; 39 class Profile;
40 class RestoreTabHelper; 40 class RestoreTabHelper;
41 class SadTabHelper; 41 class SadTabHelper;
42 class SearchEngineTabHelper; 42 class SearchEngineTabHelper;
43 class SnapshotTabHelper; 43 class SnapshotTabHelper;
44 class TabContentsSSLHelper; 44 class TabContentsSSLHelper;
45 class TabSpecificContentSettings; 45 class TabSpecificContentSettings;
46 class ThumbnailGenerator; 46 class ThumbnailGenerator;
47 class TranslateTabHelper; 47 class TranslateTabHelper;
48 class WebIntentPickerController; 48 class WebIntentPickerController;
49 class ZoomTabHelper;
49 50
50 #if defined(ENABLE_ONE_CLICK_SIGNIN) 51 #if defined(ENABLE_ONE_CLICK_SIGNIN)
51 class OneClickSigninHelper; 52 class OneClickSigninHelper;
52 #endif 53 #endif
53 54
54 namespace browser_sync { 55 namespace browser_sync {
55 class SyncedTabDelegate; 56 class SyncedTabDelegate;
56 } 57 }
57 58
58 namespace extensions { 59 namespace extensions {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 } 200 }
200 201
201 TranslateTabHelper* translate_tab_helper() { 202 TranslateTabHelper* translate_tab_helper() {
202 return translate_tab_helper_.get(); 203 return translate_tab_helper_.get();
203 } 204 }
204 205
205 WebIntentPickerController* web_intent_picker_controller() { 206 WebIntentPickerController* web_intent_picker_controller() {
206 return web_intent_picker_controller_.get(); 207 return web_intent_picker_controller_.get();
207 } 208 }
208 209
210 ZoomTabHelper* zoom_tab_helper() {
211 return zoom_tab_helper_.get();
212 }
213
209 // Overrides ----------------------------------------------------------------- 214 // Overrides -----------------------------------------------------------------
210 215
211 // content::WebContentsObserver overrides: 216 // content::WebContentsObserver overrides:
212 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; 217 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
213 218
214 private: 219 private:
215 // Used to retrieve this object from |web_contents_|, which is placed in 220 // Used to retrieve this object from |web_contents_|, which is placed in
216 // its property bag to avoid adding additional interfaces. 221 // its property bag to avoid adding additional interfaces.
217 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor(); 222 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor();
218 223
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // The TabSpecificContentSettings object is used to query the blocked content 261 // The TabSpecificContentSettings object is used to query the blocked content
257 // state by various UI elements. 262 // state by various UI elements.
258 scoped_ptr<TabSpecificContentSettings> content_settings_; 263 scoped_ptr<TabSpecificContentSettings> content_settings_;
259 264
260 scoped_ptr<ThumbnailGenerator> thumbnail_generator_; 265 scoped_ptr<ThumbnailGenerator> thumbnail_generator_;
261 scoped_ptr<TranslateTabHelper> translate_tab_helper_; 266 scoped_ptr<TranslateTabHelper> translate_tab_helper_;
262 267
263 // Handles displaying a web intents picker to the user. 268 // Handles displaying a web intents picker to the user.
264 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; 269 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_;
265 270
271 scoped_ptr<ZoomTabHelper> zoom_tab_helper_;
272
266 // Per-tab observers --------------------------------------------------------- 273 // Per-tab observers ---------------------------------------------------------
267 // (These provide no API for callers; objects that need to exist 1:1 with tabs 274 // (These provide no API for callers; objects that need to exist 1:1 with tabs
268 // and silently do their thing live here.) 275 // and silently do their thing live here.)
269 276
270 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; 277 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_;
271 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_; 278 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_;
272 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; 279 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_;
273 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; 280 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_;
274 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; 281 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_;
275 #if defined(ENABLE_ONE_CLICK_SIGNIN) 282 #if defined(ENABLE_ONE_CLICK_SIGNIN)
(...skipping 12 matching lines...) Expand all
288 295
289 // The supporting objects need to outlive the WebContents dtor (as they may 296 // The supporting objects need to outlive the WebContents dtor (as they may
290 // be called upon during its execution). As a result, this must come last 297 // be called upon during its execution). As a result, this must come last
291 // in the list. 298 // in the list.
292 scoped_ptr<content::WebContents> web_contents_; 299 scoped_ptr<content::WebContents> web_contents_;
293 300
294 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 301 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
295 }; 302 };
296 303
297 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 304 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698