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

Side by Side Diff: content/browser/tab_contents/tab_contents_view.h

Issue 7800004: Move more files to content_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 9 years, 3 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
« no previous file with comments | « content/browser/plugin_service_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "content/browser/renderer_host/render_view_host_delegate.h" 12 #include "content/browser/renderer_host/render_view_host_delegate.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
16 16
17 class RenderViewHost; 17 class RenderViewHost;
18 class RenderWidgetHost; 18 class RenderWidgetHost;
19 class RenderWidgetHostView; 19 class RenderWidgetHostView;
20 class TabContents; 20 class TabContents;
21 21
22 // The TabContentsView is an interface that is implemented by the platform- 22 // The TabContentsView is an interface that is implemented by the platform-
23 // dependent web contents views. The TabContents uses this interface to talk to 23 // dependent web contents views. The TabContents uses this interface to talk to
24 // them. View-related messages will also get forwarded directly to this class 24 // them. View-related messages will also get forwarded directly to this class
25 // from RenderViewHost via RenderViewHostDelegate::View. 25 // from RenderViewHost via RenderViewHostDelegate::View.
26 class TabContentsView : public RenderViewHostDelegate::View { 26 class TabContentsView : public RenderViewHostDelegate::View {
27 public: 27 public:
28 virtual ~TabContentsView(); 28 virtual ~TabContentsView();
29 29
30 // Creates the appropriate type of TabContentsView for the current system.
31 // The return value is a new heap allocated view with ownership passing to
32 // the caller.
33 static TabContentsView* Create(TabContents* tab_contents);
34
35 virtual void CreateView(const gfx::Size& initial_size) = 0; 30 virtual void CreateView(const gfx::Size& initial_size) = 0;
36 31
37 // Sets up the View that holds the rendered web page, receives messages for 32 // Sets up the View that holds the rendered web page, receives messages for
38 // it and contains page plugins. The host view should be sized to the current 33 // it and contains page plugins. The host view should be sized to the current
39 // size of the TabContents. 34 // size of the TabContents.
40 virtual RenderWidgetHostView* CreateViewForWidget( 35 virtual RenderWidgetHostView* CreateViewForWidget(
41 RenderWidgetHost* render_widget_host) = 0; 36 RenderWidgetHost* render_widget_host) = 0;
42 37
43 // Returns the native widget that contains the contents of the tab. 38 // Returns the native widget that contains the contents of the tab.
44 virtual gfx::NativeView GetNativeView() const = 0; 39 virtual gfx::NativeView GetNativeView() const = 0;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 virtual void GetViewBounds(gfx::Rect* out) const = 0; 120 virtual void GetViewBounds(gfx::Rect* out) const = 0;
126 121
127 protected: 122 protected:
128 TabContentsView(); // Abstract interface. 123 TabContentsView(); // Abstract interface.
129 124
130 private: 125 private:
131 DISALLOW_COPY_AND_ASSIGN(TabContentsView); 126 DISALLOW_COPY_AND_ASSIGN(TabContentsView);
132 }; 127 };
133 128
134 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_ 129 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_service_unittest.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698