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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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) 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_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_
7 #pragma once 7 #pragma once
8 8
9 class RenderViewHost;
10 class TabContentsContainer; 9 class TabContentsContainer;
11 10
12 namespace content { 11 namespace content {
12 class RenderViewHost;
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 namespace views { 16 namespace views {
17 class View; 17 class View;
18 } 18 }
19 19
20 // An interface that the TabContentsContainer uses to talk to a platform- 20 // An interface that the TabContentsContainer uses to talk to a platform-
21 // specific view that hosts the native handle of the WebContents' view. 21 // specific view that hosts the native handle of the WebContents' view.
22 class NativeTabContentsContainer { 22 class NativeTabContentsContainer {
(...skipping 11 matching lines...) Expand all
34 // Tells the container to update less frequently during resizing operations 34 // Tells the container to update less frequently during resizing operations
35 // so performance is better. 35 // so performance is better.
36 virtual void SetFastResize(bool fast_resize) = 0; 36 virtual void SetFastResize(bool fast_resize) = 0;
37 virtual bool GetFastResize() const = 0; 37 virtual bool GetFastResize() const = 0;
38 38
39 // Returns the value of GetFastResize() the last time layout occurred. 39 // Returns the value of GetFastResize() the last time layout occurred.
40 virtual bool FastResizeAtLastLayout() const = 0; 40 virtual bool FastResizeAtLastLayout() const = 0;
41 41
42 // Tells the container that the RenderViewHost for the attached WebContents 42 // Tells the container that the RenderViewHost for the attached WebContents
43 // has changed and it should update focus. 43 // has changed and it should update focus.
44 virtual void RenderViewHostChanged(RenderViewHost* old_host, 44 virtual void RenderViewHostChanged(content::RenderViewHost* old_host,
45 RenderViewHost* new_host) = 0; 45 content::RenderViewHost* new_host) = 0;
46 46
47 // Tells the container that |contents| got the focus. 47 // Tells the container that |contents| got the focus.
48 virtual void WebContentsFocused(content::WebContents* contents) = 0; 48 virtual void WebContentsFocused(content::WebContents* contents) = 0;
49 49
50 // Retrieves the views::View that hosts the TabContents. 50 // Retrieves the views::View that hosts the TabContents.
51 virtual views::View* GetView() = 0; 51 virtual views::View* GetView() = 0;
52 52
53 protected: 53 protected:
54 virtual ~NativeTabContentsContainer() {} 54 virtual ~NativeTabContentsContainer() {}
55 }; 55 };
56 56
57 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_ 57 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698