| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/gfx/gdi_util.h" | 8 #include "base/gfx/gdi_util.h" |
| 9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
| 10 #include "base/histogram.h" | 10 #include "base/histogram.h" |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 GetCursorPos(&pt); | 264 GetCursorPos(&pt); |
| 265 if (WindowFromPoint(pt) == m_hWnd) | 265 if (WindowFromPoint(pt) == m_hWnd) |
| 266 SetCursor(display_cursor); | 266 SetCursor(display_cursor); |
| 267 } | 267 } |
| 268 | 268 |
| 269 void RenderWidgetHostViewWin::SetIsLoading(bool is_loading) { | 269 void RenderWidgetHostViewWin::SetIsLoading(bool is_loading) { |
| 270 is_loading_ = is_loading; | 270 is_loading_ = is_loading; |
| 271 UpdateCursorIfOverSelf(); | 271 UpdateCursorIfOverSelf(); |
| 272 } | 272 } |
| 273 | 273 |
| 274 void RenderWidgetHostViewWin::IMEUpdateStatus(ViewHostMsg_ImeControl control, | 274 void RenderWidgetHostViewWin::IMEUpdateStatus(int control, |
| 275 const gfx::Rect& caret_rect) { | 275 const gfx::Rect& caret_rect) { |
| 276 if (control == IME_DISABLE) { | 276 if (control == IME_DISABLE) { |
| 277 ime_input_.DisableIME(m_hWnd); | 277 ime_input_.DisableIME(m_hWnd); |
| 278 } else { | 278 } else { |
| 279 ime_input_.EnableIME(m_hWnd, caret_rect, | 279 ime_input_.EnableIME(m_hWnd, caret_rect, |
| 280 control == IME_COMPLETE_COMPOSITION); | 280 control == IME_COMPLETE_COMPOSITION); |
| 281 } | 281 } |
| 282 } | 282 } |
| 283 | 283 |
| 284 BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lparam) { | 284 BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lparam) { |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 // WM_LBUTTONDOWN. | 969 // WM_LBUTTONDOWN. |
| 970 SetFocus(); | 970 SetFocus(); |
| 971 } | 971 } |
| 972 } | 972 } |
| 973 | 973 |
| 974 void RenderWidgetHostViewWin::ShutdownHost() { | 974 void RenderWidgetHostViewWin::ShutdownHost() { |
| 975 shutdown_factory_.RevokeAll(); | 975 shutdown_factory_.RevokeAll(); |
| 976 render_widget_host_->Shutdown(); | 976 render_widget_host_->Shutdown(); |
| 977 // Do not touch any members at this point, |this| has been deleted. | 977 // Do not touch any members at this point, |this| has been deleted. |
| 978 } | 978 } |
| OLD | NEW |