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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_view_gtk.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) 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_GTK_EXTENSIONS_EXTENSION_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
13 13
14 class Browser; 14 class Browser;
15 class ExtensionHost; 15 class ExtensionHost;
16 class SkBitmap;
17
18 namespace content {
16 class RenderViewHost; 19 class RenderViewHost;
17 class SkBitmap; 20 }
18 21
19 class ExtensionViewGtk { 22 class ExtensionViewGtk {
20 public: 23 public:
21 ExtensionViewGtk(ExtensionHost* extension_host, Browser* browser); 24 ExtensionViewGtk(ExtensionHost* extension_host, Browser* browser);
22 25
23 class Container { 26 class Container {
24 public: 27 public:
25 virtual ~Container() {} 28 virtual ~Container() {}
26 virtual void OnExtensionPreferredSizeChanged(ExtensionViewGtk* view, 29 virtual void OnExtensionPreferredSizeChanged(ExtensionViewGtk* view,
27 const gfx::Size& new_size) {} 30 const gfx::Size& new_size) {}
(...skipping 10 matching lines...) Expand all
38 void SetContainer(Container* container) { container_ = container; } 41 void SetContainer(Container* container) { container_ = container; }
39 42
40 // Method for the ExtensionHost to notify us about the correct size for 43 // Method for the ExtensionHost to notify us about the correct size for
41 // extension contents. 44 // extension contents.
42 void UpdatePreferredSize(const gfx::Size& new_size); 45 void UpdatePreferredSize(const gfx::Size& new_size);
43 46
44 // Method for the ExtensionHost to notify us when the RenderViewHost has a 47 // Method for the ExtensionHost to notify us when the RenderViewHost has a
45 // connection. 48 // connection.
46 void RenderViewCreated(); 49 void RenderViewCreated();
47 50
48 RenderViewHost* render_view_host() const; 51 content::RenderViewHost* render_view_host() const;
49 52
50 private: 53 private:
51 void CreateWidgetHostView(); 54 void CreateWidgetHostView();
52 55
53 Browser* browser_; 56 Browser* browser_;
54 57
55 ExtensionHost* extension_host_; 58 ExtensionHost* extension_host_;
56 59
57 // The background the view should have once it is initialized. This is set 60 // The background the view should have once it is initialized. This is set
58 // when the view has a custom background, but hasn't been initialized yet. 61 // when the view has a custom background, but hasn't been initialized yet.
59 SkBitmap pending_background_; 62 SkBitmap pending_background_;
60 63
61 // This view's container. 64 // This view's container.
62 Container* container_; 65 Container* container_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk); 67 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk);
65 }; 68 };
66 69
67 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_VIEW_GTK_H_ 70 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc ('k') | chrome/browser/ui/gtk/extensions/extension_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698