| 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; | |
| 19 class RenderWidgetHost; | |
| 20 class TabContents; | 18 class TabContents; |
| 21 | 19 |
| 22 namespace content { | 20 namespace content { |
| 23 | 21 |
| 22 class RenderViewHost; |
| 23 class RenderWidgetHost; |
| 24 class RenderWidgetHostView; | 24 class RenderWidgetHostView; |
| 25 | 25 |
| 26 // The WebContentsView is an interface that is implemented by the platform- | 26 // The WebContentsView is an interface that is implemented by the platform- |
| 27 // 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 |
| 28 // 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 |
| 29 // from RenderViewHost via RenderViewHostDelegate::View. | 29 // from RenderViewHost via RenderViewHostDelegate::View. |
| 30 class CONTENT_EXPORT WebContentsView | 30 class CONTENT_EXPORT WebContentsView |
| 31 : public content::RenderViewHostDelegate::View { | 31 : public content::RenderViewHostDelegate::View { |
| 32 public: | 32 public: |
| 33 WebContentsView() {} | 33 WebContentsView() {} |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void CloseTabAfterEventTracking() = 0; | 118 virtual void CloseTabAfterEventTracking() = 0; |
| 119 | 119 |
| 120 // Get the bounds of the View, relative to the parent. | 120 // Get the bounds of the View, relative to the parent. |
| 121 // TODO(beng): Return a rect rather than using an out param. | 121 // TODO(beng): Return a rect rather than using an out param. |
| 122 virtual void GetViewBounds(gfx::Rect* out) const = 0; | 122 virtual void GetViewBounds(gfx::Rect* out) const = 0; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace content | 125 } // namespace content |
| 126 | 126 |
| 127 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ | 127 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_H_ |
| OLD | NEW |