| OLD | NEW |
| 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_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/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 13 #include "content/public/browser/render_view_host_delegate.h" | 13 #include "content/public/browser/render_view_host_delegate.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 17 | 17 |
| 18 class RenderViewHost; | 18 class RenderViewHost; |
| 19 class RenderWidgetHost; | 19 class RenderWidgetHost; |
| 20 class RenderWidgetHostView; | |
| 21 class TabContents; | 20 class TabContents; |
| 22 | 21 |
| 23 namespace content { | 22 namespace content { |
| 24 | 23 |
| 24 class RenderWidgetHostView; |
| 25 |
| 25 // The WebContentsView is an interface that is implemented by the platform- | 26 // The WebContentsView is an interface that is implemented by the platform- |
| 26 // dependent web contents views. The TabContents uses this interface to talk to | 27 // dependent web contents views. The TabContents uses this interface to talk to |
| 27 // them. View-related messages will also get forwarded directly to this class | 28 // them. View-related messages will also get forwarded directly to this class |
| 28 // from RenderViewHost via RenderViewHostDelegate::View. | 29 // from RenderViewHost via RenderViewHostDelegate::View. |
| 29 class CONTENT_EXPORT WebContentsView | 30 class CONTENT_EXPORT WebContentsView |
| 30 : public content::RenderViewHostDelegate::View { | 31 : public content::RenderViewHostDelegate::View { |
| 31 public: | 32 public: |
| 32 WebContentsView() {} | 33 WebContentsView() {} |
| 33 virtual ~WebContentsView() {} | 34 virtual ~WebContentsView() {} |
| 34 | 35 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Removes the native overlay view installed by |InstallOverlayView|. | 133 // Removes the native overlay view installed by |InstallOverlayView|. |
| 133 virtual void RemoveOverlayView() = 0; | 134 virtual void RemoveOverlayView() = 0; |
| 134 | 135 |
| 135 private: | 136 private: |
| 136 DISALLOW_COPY_AND_ASSIGN(WebContentsView); | 137 DISALLOW_COPY_AND_ASSIGN(WebContentsView); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 } // namespace content | 140 } // namespace content |
| 140 | 141 |
| 141 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 142 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
| OLD | NEW |