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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/browser/keyboard_listener.h" | 11 #include "content/public/browser/keyboard_listener.h" |
12 #include "content/public/browser/native_web_keyboard_event.h" | 12 #include "content/public/browser/native_web_keyboard_event.h" |
13 #include "ipc/ipc_channel.h" | 13 #include "ipc/ipc_channel.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
17 #include "ui/gfx/surface/transport_dib.h" | 17 #include "ui/surface/transport_dib.h" |
18 | 18 |
19 #if defined(TOOLKIT_GTK) | 19 #if defined(TOOLKIT_GTK) |
20 #include "ui/base/x/x11_util.h" | 20 #include "ui/base/x/x11_util.h" |
21 #elif defined(OS_MACOSX) | 21 #elif defined(OS_MACOSX) |
22 #include "skia/ext/platform_device.h" | 22 #include "skia/ext/platform_device.h" |
23 #endif | 23 #endif |
24 | 24 |
25 namespace gfx { | 25 namespace gfx { |
26 class Rect; | 26 class Rect; |
27 } | 27 } |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // within content/. This method is necessary because | 285 // within content/. This method is necessary because |
286 // RenderWidgetHost is the root of a diamond inheritance pattern, so | 286 // RenderWidgetHost is the root of a diamond inheritance pattern, so |
287 // subclasses inherit it virtually, which removes our ability to | 287 // subclasses inherit it virtually, which removes our ability to |
288 // static_cast to the subclass. | 288 // static_cast to the subclass. |
289 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; | 289 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; |
290 }; | 290 }; |
291 | 291 |
292 } // namespace content | 292 } // namespace content |
293 | 293 |
294 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 294 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
OLD | NEW |