| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/renderer_host/backing_store.h" | 22 #include "chrome/browser/renderer_host/backing_store.h" |
| 23 #include "chrome/browser/renderer_host/backing_store_win.h" | 23 #include "chrome/browser/renderer_host/backing_store_win.h" |
| 24 #include "chrome/browser/renderer_host/render_process_host.h" | 24 #include "chrome/browser/renderer_host/render_process_host.h" |
| 25 #include "chrome/browser/renderer_host/render_widget_host.h" | 25 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 26 #include "chrome/common/chrome_constants.h" | 26 #include "chrome/common/chrome_constants.h" |
| 27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
| 28 #include "chrome/common/native_web_keyboard_event.h" | 28 #include "chrome/common/native_web_keyboard_event.h" |
| 29 #include "chrome/common/notification_service.h" | 29 #include "chrome/common/notification_service.h" |
| 30 #include "chrome/common/plugin_messages.h" | 30 #include "chrome/common/plugin_messages.h" |
| 31 #include "chrome/common/render_messages.h" | 31 #include "chrome/common/render_messages.h" |
| 32 #include "gfx/canvas.h" | |
| 33 #include "gfx/canvas_skia.h" | |
| 34 #include "gfx/gdi_util.h" | |
| 35 #include "gfx/rect.h" | |
| 36 #include "grit/webkit_resources.h" | 32 #include "grit/webkit_resources.h" |
| 37 #include "skia/ext/skia_utils_win.h" | 33 #include "skia/ext/skia_utils_win.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact
ory.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact
ory.h" |
| 40 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
| 41 #include "ui/base/l10n/l10n_util_win.h" | 37 #include "ui/base/l10n/l10n_util_win.h" |
| 42 #include "ui/base/resource/resource_bundle.h" | 38 #include "ui/base/resource/resource_bundle.h" |
| 43 #include "ui/base/view_prop.h" | 39 #include "ui/base/view_prop.h" |
| 44 #include "ui/base/win/hwnd_util.h" | 40 #include "ui/base/win/hwnd_util.h" |
| 41 #include "ui/gfx/canvas.h" |
| 42 #include "ui/gfx/canvas_skia.h" |
| 43 #include "ui/gfx/gdi_util.h" |
| 44 #include "ui/gfx/rect.h" |
| 45 #include "views/accessibility/view_accessibility.h" | 45 #include "views/accessibility/view_accessibility.h" |
| 46 #include "views/focus/focus_manager.h" | 46 #include "views/focus/focus_manager.h" |
| 47 #include "views/focus/focus_util_win.h" | 47 #include "views/focus/focus_util_win.h" |
| 48 // Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! | 48 // Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! |
| 49 #include "views/widget/widget_win.h" | 49 #include "views/widget/widget_win.h" |
| 50 #include "webkit/glue/webaccessibility.h" | 50 #include "webkit/glue/webaccessibility.h" |
| 51 #include "webkit/glue/webcursor.h" | 51 #include "webkit/glue/webcursor.h" |
| 52 #include "webkit/plugins/npapi/plugin_constants_win.h" | 52 #include "webkit/plugins/npapi/plugin_constants_win.h" |
| 53 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 53 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
| 54 #include "webkit/plugins/npapi/webplugin.h" | 54 #include "webkit/plugins/npapi/webplugin.h" |
| (...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1810 } | 1810 } |
| 1811 | 1811 |
| 1812 // static | 1812 // static |
| 1813 RenderWidgetHostView* | 1813 RenderWidgetHostView* |
| 1814 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1814 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
| 1815 gfx::NativeView native_view) { | 1815 gfx::NativeView native_view) { |
| 1816 return ::IsWindow(native_view) ? | 1816 return ::IsWindow(native_view) ? |
| 1817 reinterpret_cast<RenderWidgetHostView*>( | 1817 reinterpret_cast<RenderWidgetHostView*>( |
| 1818 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 1818 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; |
| 1819 } | 1819 } |
| OLD | NEW |