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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // Make sure the tooltip gets closed after TTN_POP gets sent. For some | 437 // Make sure the tooltip gets closed after TTN_POP gets sent. For some |
438 // reason this doesn't happen automatically, so moving the mouse around | 438 // reason this doesn't happen automatically, so moving the mouse around |
439 // within the same link/image/etc doesn't cause the tooltip to re-appear. | 439 // within the same link/image/etc doesn't cause the tooltip to re-appear. |
440 if (!tooltip_showing_) { | 440 if (!tooltip_showing_) { |
441 if (::IsWindow(tooltip_hwnd_)) | 441 if (::IsWindow(tooltip_hwnd_)) |
442 ::SendMessage(tooltip_hwnd_, TTM_POP, 0, 0); | 442 ::SendMessage(tooltip_hwnd_, TTM_POP, 0, 0); |
443 } | 443 } |
444 } | 444 } |
445 } | 445 } |
446 | 446 |
| 447 BackingStore* RenderWidgetHostViewWin::AllocBackingStore( |
| 448 const gfx::Size& size) { |
| 449 return new BackingStore(size); |
| 450 } |
| 451 |
447 /////////////////////////////////////////////////////////////////////////////// | 452 /////////////////////////////////////////////////////////////////////////////// |
448 // RenderWidgetHostViewWin, private: | 453 // RenderWidgetHostViewWin, private: |
449 | 454 |
450 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { | 455 LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) { |
451 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale | 456 // Call the WM_INPUTLANGCHANGE message handler to initialize the input locale |
452 // of a browser process. | 457 // of a browser process. |
453 OnInputLangChange(0, 0); | 458 OnInputLangChange(0, 0); |
454 TRACK_HWND_CREATION(m_hWnd); | 459 TRACK_HWND_CREATION(m_hWnd); |
455 return 0; | 460 return 0; |
456 } | 461 } |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 // WM_LBUTTONDOWN. | 1033 // WM_LBUTTONDOWN. |
1029 SetFocus(); | 1034 SetFocus(); |
1030 } | 1035 } |
1031 } | 1036 } |
1032 | 1037 |
1033 void RenderWidgetHostViewWin::ShutdownHost() { | 1038 void RenderWidgetHostViewWin::ShutdownHost() { |
1034 shutdown_factory_.RevokeAll(); | 1039 shutdown_factory_.RevokeAll(); |
1035 render_widget_host_->Shutdown(); | 1040 render_widget_host_->Shutdown(); |
1036 // Do not touch any members at this point, |this| has been deleted. | 1041 // Do not touch any members at this point, |this| has been deleted. |
1037 } | 1042 } |
OLD | NEW |