| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 about_to_validate_and_paint_(false), | 231 about_to_validate_and_paint_(false), |
| 232 close_on_deactivate_(false), | 232 close_on_deactivate_(false), |
| 233 being_destroyed_(false), | 233 being_destroyed_(false), |
| 234 tooltip_hwnd_(NULL), | 234 tooltip_hwnd_(NULL), |
| 235 tooltip_showing_(false), | 235 tooltip_showing_(false), |
| 236 shutdown_factory_(this), | 236 shutdown_factory_(this), |
| 237 parent_hwnd_(NULL), | 237 parent_hwnd_(NULL), |
| 238 is_loading_(false), | 238 is_loading_(false), |
| 239 overlay_color_(0), | 239 overlay_color_(0), |
| 240 text_input_type_(ui::TEXT_INPUT_TYPE_NONE) { | 240 text_input_type_(ui::TEXT_INPUT_TYPE_NONE) { |
| 241 render_widget_host_->set_view(this); | 241 render_widget_host_->SetView(this); |
| 242 registrar_.Add(this, | 242 registrar_.Add(this, |
| 243 NotificationType::RENDERER_PROCESS_TERMINATED, | 243 NotificationType::RENDERER_PROCESS_TERMINATED, |
| 244 NotificationService::AllSources()); | 244 NotificationService::AllSources()); |
| 245 } | 245 } |
| 246 | 246 |
| 247 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() { | 247 RenderWidgetHostViewWin::~RenderWidgetHostViewWin() { |
| 248 ResetTooltip(); | 248 ResetTooltip(); |
| 249 } | 249 } |
| 250 | 250 |
| 251 void RenderWidgetHostViewWin::CreateWnd(HWND parent) { | 251 void RenderWidgetHostViewWin::CreateWnd(HWND parent) { |
| (...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1801 } | 1801 } |
| 1802 | 1802 |
| 1803 // static | 1803 // static |
| 1804 RenderWidgetHostView* | 1804 RenderWidgetHostView* |
| 1805 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1805 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
| 1806 gfx::NativeView native_view) { | 1806 gfx::NativeView native_view) { |
| 1807 return ::IsWindow(native_view) ? | 1807 return ::IsWindow(native_view) ? |
| 1808 reinterpret_cast<RenderWidgetHostView*>( | 1808 reinterpret_cast<RenderWidgetHostView*>( |
| 1809 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 1809 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; |
| 1810 } | 1810 } |
| OLD | NEW |