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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_view_mac.h

Issue 8498022: Have ExtensionHost use TabContents instead of RenderViewHost. Try #2. The first (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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_COCOA_EXTENSIONS_EXTENSION_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_VIEW_MAC_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 RenderViewHost; 16 class RenderViewHost;
17 class RenderWidgetHostViewMac;
18 class SkBitmap; 17 class SkBitmap;
19 18
20 // This class represents extension views. An extension view internally contains 19 // This class represents extension views. An extension view internally contains
21 // a bridge to an extension process, which draws to the extension view's 20 // a bridge to an extension process, which draws to the extension view's
22 // native view object through IPC. 21 // native view object through IPC.
23 class ExtensionViewMac { 22 class ExtensionViewMac {
24 public: 23 public:
25 ExtensionViewMac(ExtensionHost* extension_host, Browser* browser); 24 ExtensionViewMac(ExtensionHost* extension_host, Browser* browser);
26 ~ExtensionViewMac(); 25 ~ExtensionViewMac();
27 26
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 59
61 private: 60 private:
62 RenderViewHost* render_view_host() const; 61 RenderViewHost* render_view_host() const;
63 62
64 void CreateWidgetHostView(); 63 void CreateWidgetHostView();
65 64
66 Browser* browser_; // weak 65 Browser* browser_; // weak
67 66
68 ExtensionHost* extension_host_; // weak 67 ExtensionHost* extension_host_; // weak
69 68
70 // Created by us, but owned by its |native_view()|. We |release| the
71 // rwhv's native view in our destructor, effectively freeing this.
72 RenderWidgetHostViewMac* render_widget_host_view_;
73
74 // The background the view should have once it is initialized. This is set 69 // The background the view should have once it is initialized. This is set
75 // when the view has a custom background, but hasn't been initialized yet. 70 // when the view has a custom background, but hasn't been initialized yet.
76 SkBitmap pending_background_; 71 SkBitmap pending_background_;
77 72
78 DISALLOW_COPY_AND_ASSIGN(ExtensionViewMac); 73 DISALLOW_COPY_AND_ASSIGN(ExtensionViewMac);
79 }; 74 };
80 75
81 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_VIEW_MAC_H_ 76 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698