| 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 "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/l10n_util_win.h" | 10 #include "app/l10n_util_win.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #include "app/win/hwnd_util.h" | 12 #include "app/win/hwnd_util.h" |
| 13 #include "app/view_prop.h" | 13 #include "app/view_prop.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 18 #include "base/scoped_comptr_win.h" | 18 #include "base/scoped_comptr_win.h" |
| 19 #include "base/thread.h" | 19 #include "base/threading/thread.h" |
| 20 #include "base/win/scoped_gdi_object.h" | 20 #include "base/win/scoped_gdi_object.h" |
| 21 #include "chrome/browser/accessibility/browser_accessibility_win.h" | 21 #include "chrome/browser/accessibility/browser_accessibility_win.h" |
| 22 #include "chrome/browser/accessibility/browser_accessibility_manager.h" | 22 #include "chrome/browser/accessibility/browser_accessibility_manager.h" |
| 23 #include "chrome/browser/accessibility/browser_accessibility_state.h" | 23 #include "chrome/browser/accessibility/browser_accessibility_state.h" |
| 24 #include "chrome/browser/browser_thread.h" | 24 #include "chrome/browser/browser_thread.h" |
| 25 #include "chrome/browser/browser_trial.h" | 25 #include "chrome/browser/browser_trial.h" |
| 26 #include "chrome/browser/plugin_process_host.h" | 26 #include "chrome/browser/plugin_process_host.h" |
| 27 #include "chrome/browser/renderer_host/backing_store.h" | 27 #include "chrome/browser/renderer_host/backing_store.h" |
| 28 #include "chrome/browser/renderer_host/backing_store_win.h" | 28 #include "chrome/browser/renderer_host/backing_store_win.h" |
| 29 #include "chrome/browser/renderer_host/render_process_host.h" | 29 #include "chrome/browser/renderer_host/render_process_host.h" |
| (...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 } | 1807 } |
| 1808 | 1808 |
| 1809 // static | 1809 // static |
| 1810 RenderWidgetHostView* | 1810 RenderWidgetHostView* |
| 1811 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1811 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
| 1812 gfx::NativeView native_view) { | 1812 gfx::NativeView native_view) { |
| 1813 return ::IsWindow(native_view) ? | 1813 return ::IsWindow(native_view) ? |
| 1814 reinterpret_cast<RenderWidgetHostView*>( | 1814 reinterpret_cast<RenderWidgetHostView*>( |
| 1815 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 1815 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; |
| 1816 } | 1816 } |
| OLD | NEW |