| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "app/gfx/canvas.h" | 7 #include "app/gfx/canvas.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "app/l10n_util_win.h" | 9 #include "app/l10n_util_win.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "webkit/api/public/win/WebInputEventFactory.h" | 33 #include "webkit/api/public/win/WebInputEventFactory.h" |
| 34 #include "views/focus/focus_util_win.h" | 34 #include "views/focus/focus_util_win.h" |
| 35 // Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! | 35 // Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! |
| 36 #include "views/widget/widget_win.h" | 36 #include "views/widget/widget_win.h" |
| 37 #include "webkit/glue/plugins/plugin_constants_win.h" | 37 #include "webkit/glue/plugins/plugin_constants_win.h" |
| 38 #include "webkit/glue/plugins/webplugin_delegate_impl.h" | 38 #include "webkit/glue/plugins/webplugin_delegate_impl.h" |
| 39 #include "webkit/glue/webcursor.h" | 39 #include "webkit/glue/webcursor.h" |
| 40 | 40 |
| 41 using base::TimeDelta; | 41 using base::TimeDelta; |
| 42 using base::TimeTicks; | 42 using base::TimeTicks; |
| 43 | |
| 44 using WebKit::WebInputEvent; | 43 using WebKit::WebInputEvent; |
| 45 using WebKit::WebInputEventFactory; | 44 using WebKit::WebInputEventFactory; |
| 46 using WebKit::WebMouseEvent; | 45 using WebKit::WebMouseEvent; |
| 47 using WebKit::WebTextDirection; | 46 using WebKit::WebTextDirection; |
| 47 using webkit_glue::WebPluginGeometry; |
| 48 | 48 |
| 49 namespace { | 49 namespace { |
| 50 | 50 |
| 51 // Tooltips will wrap after this width. Yes, wrap. Imagine that! | 51 // Tooltips will wrap after this width. Yes, wrap. Imagine that! |
| 52 const int kTooltipMaxWidthPixels = 300; | 52 const int kTooltipMaxWidthPixels = 300; |
| 53 | 53 |
| 54 // Maximum number of characters we allow in a tooltip. | 54 // Maximum number of characters we allow in a tooltip. |
| 55 const int kMaxTooltipLength = 1024; | 55 const int kMaxTooltipLength = 1024; |
| 56 | 56 |
| 57 // A callback function for EnumThreadWindows to enumerate and dismiss | 57 // A callback function for EnumThreadWindows to enumerate and dismiss |
| (...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 // WM_LBUTTONDOWN. | 1322 // WM_LBUTTONDOWN. |
| 1323 SetFocus(); | 1323 SetFocus(); |
| 1324 } | 1324 } |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 void RenderWidgetHostViewWin::ShutdownHost() { | 1327 void RenderWidgetHostViewWin::ShutdownHost() { |
| 1328 shutdown_factory_.RevokeAll(); | 1328 shutdown_factory_.RevokeAll(); |
| 1329 render_widget_host_->Shutdown(); | 1329 render_widget_host_->Shutdown(); |
| 1330 // Do not touch any members at this point, |this| has been deleted. | 1330 // Do not touch any members at this point, |this| has been deleted. |
| 1331 } | 1331 } |
| OLD | NEW |