| 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_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(TOOLKIT_USES_GTK) | 9 #if defined(TOOLKIT_USES_GTK) |
| 10 #include <gdk/gdk.h> | 10 #include <gdk/gdk.h> |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
| 15 #include "third_party/skia/include/core/SkRegion.h" | 15 #include "third_party/skia/include/core/SkRegion.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 | 18 |
| 19 class BrowserAccessibilityManager; | 19 class BrowserAccessibilityManager; |
| 20 class RenderWidgetHost; | |
| 21 | 20 |
| 22 namespace gfx { | 21 namespace gfx { |
| 23 class Rect; | 22 class Rect; |
| 24 class Size; | 23 class Size; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace content { | 26 namespace content { |
| 28 | 27 |
| 28 class RenderWidgetHost; |
| 29 |
| 29 // RenderWidgetHostView is an interface implemented by an object that acts as | 30 // RenderWidgetHostView is an interface implemented by an object that acts as |
| 30 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its | 31 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its |
| 31 // associated RenderProcessHost own the "Model" in this case which is the | 32 // associated RenderProcessHost own the "Model" in this case which is the |
| 32 // child renderer process. The View is responsible for receiving events from | 33 // child renderer process. The View is responsible for receiving events from |
| 33 // the surrounding environment and passing them to the RenderWidgetHost, and | 34 // the surrounding environment and passing them to the RenderWidgetHost, and |
| 34 // for actually displaying the content of the RenderWidgetHost when it | 35 // for actually displaying the content of the RenderWidgetHost when it |
| 35 // changes. | 36 // changes. |
| 36 class CONTENT_EXPORT RenderWidgetHostView { | 37 class CONTENT_EXPORT RenderWidgetHostView { |
| 37 public: | 38 public: |
| 38 virtual ~RenderWidgetHostView() {} | 39 virtual ~RenderWidgetHostView() {} |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // The region specified will be transparent to mouse clicks. | 143 // The region specified will be transparent to mouse clicks. |
| 143 virtual void SetClickthroughRegion(SkRegion* region) {} | 144 virtual void SetClickthroughRegion(SkRegion* region) {} |
| 144 #endif | 145 #endif |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 } // namespace content | 148 } // namespace content |
| 148 | 149 |
| 149 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 150 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| 150 | 151 |
| 151 | 152 |
| OLD | NEW |