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

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

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 231 }
232 232
233 TranslateTabHelper* translate_tab_helper() { 233 TranslateTabHelper* translate_tab_helper() {
234 return translate_tab_helper_.get(); 234 return translate_tab_helper_.get();
235 } 235 }
236 236
237 WebIntentPickerController* web_intent_picker_controller() { 237 WebIntentPickerController* web_intent_picker_controller() {
238 return web_intent_picker_controller_.get(); 238 return web_intent_picker_controller_.get();
239 } 239 }
240 240
241 ZoomController* zoom_controller() { 241 ZoomController* zoom_controller() const {
242 return zoom_controller_.get(); 242 return zoom_controller_.get();
243 } 243 }
244 244
245 // Overrides ----------------------------------------------------------------- 245 // Overrides -----------------------------------------------------------------
246 246
247 // content::WebContentsObserver overrides: 247 // content::WebContentsObserver overrides:
248 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; 248 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
249 249
250 private: 250 private:
251 // Used to retrieve this object from |web_contents_|, which is placed in 251 // Used to retrieve this object from |web_contents_|, which is placed in
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 // The supporting objects need to outlive the WebContents dtor (as they may 330 // The supporting objects need to outlive the WebContents dtor (as they may
331 // be called upon during its execution). As a result, this must come last 331 // be called upon during its execution). As a result, this must come last
332 // in the list. 332 // in the list.
333 scoped_ptr<content::WebContents> web_contents_; 333 scoped_ptr<content::WebContents> web_contents_;
334 334
335 DISALLOW_COPY_AND_ASSIGN(TabContents); 335 DISALLOW_COPY_AND_ASSIGN(TabContents);
336 }; 336 };
337 337
338 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 338 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698