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

Side by Side Diff: chrome/browser/gtk/extension_view_gtk.h

Issue 4767001: Make TabContents own its infobar delegates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GTK_EXTENSION_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_
6 #define CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_ 6 #define CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "gfx/native_widget_types.h" 10 #include "gfx/native_widget_types.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // extension contents. 42 // extension contents.
43 void UpdatePreferredSize(const gfx::Size& new_size); 43 void UpdatePreferredSize(const gfx::Size& new_size);
44 44
45 // Method for the ExtensionHost to notify us when the RenderViewHost has a 45 // Method for the ExtensionHost to notify us when the RenderViewHost has a
46 // connection. 46 // connection.
47 void RenderViewCreated(); 47 void RenderViewCreated();
48 48
49 RenderViewHost* render_view_host() const; 49 RenderViewHost* render_view_host() const;
50 50
51 private: 51 private:
52 virtual ~ExtensionViewGtk();
53
52 void CreateWidgetHostView(); 54 void CreateWidgetHostView();
53 55
54 Browser* browser_; 56 Browser* browser_;
55 57
56 ExtensionHost* extension_host_; 58 ExtensionHost* extension_host_;
57 59
58 RenderWidgetHostViewGtk* render_widget_host_view_; 60 RenderWidgetHostViewGtk* render_widget_host_view_;
59 61
60 // The background the view should have once it is initialized. This is set 62 // The background the view should have once it is initialized. This is set
61 // when the view has a custom background, but hasn't been initialized yet. 63 // when the view has a custom background, but hasn't been initialized yet.
62 SkBitmap pending_background_; 64 SkBitmap pending_background_;
63 65
64 // This view's container. 66 // This view's container.
65 Container* container_; 67 Container* container_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk); 69 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk);
68 }; 70 };
69 71
70 #endif // CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_ 72 #endif // CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698