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" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "webkit/glue/webaccessibility.h" | 52 #include "webkit/glue/webaccessibility.h" |
53 #include "webkit/glue/webcursor.h" | 53 #include "webkit/glue/webcursor.h" |
54 | 54 |
55 using app::ViewProp; | 55 using app::ViewProp; |
56 using base::TimeDelta; | 56 using base::TimeDelta; |
57 using base::TimeTicks; | 57 using base::TimeTicks; |
58 using WebKit::WebInputEvent; | 58 using WebKit::WebInputEvent; |
59 using WebKit::WebInputEventFactory; | 59 using WebKit::WebInputEventFactory; |
60 using WebKit::WebMouseEvent; | 60 using WebKit::WebMouseEvent; |
61 using WebKit::WebTextDirection; | 61 using WebKit::WebTextDirection; |
62 using webkit_glue::WebPluginGeometry; | 62 using webkit::npapi::WebPluginGeometry; |
63 | 63 |
64 const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; | 64 const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; |
65 | 65 |
66 namespace { | 66 namespace { |
67 | 67 |
68 // Tooltips will wrap after this width. Yes, wrap. Imagine that! | 68 // Tooltips will wrap after this width. Yes, wrap. Imagine that! |
69 const int kTooltipMaxWidthPixels = 300; | 69 const int kTooltipMaxWidthPixels = 300; |
70 | 70 |
71 // Maximum number of characters we allow in a tooltip. | 71 // Maximum number of characters we allow in a tooltip. |
72 const int kMaxTooltipLength = 1024; | 72 const int kMaxTooltipLength = 1024; |
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1805 } | 1805 } |
1806 | 1806 |
1807 // static | 1807 // static |
1808 RenderWidgetHostView* | 1808 RenderWidgetHostView* |
1809 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1809 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
1810 gfx::NativeView native_view) { | 1810 gfx::NativeView native_view) { |
1811 return ::IsWindow(native_view) ? | 1811 return ::IsWindow(native_view) ? |
1812 reinterpret_cast<RenderWidgetHostView*>( | 1812 reinterpret_cast<RenderWidgetHostView*>( |
1813 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 1813 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; |
1814 } | 1814 } |
OLD | NEW |