| 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 "base/command_line.h" | 9 #include "base/command_line.h" | 
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" | 
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 318 void RenderWidgetHostViewWin::InitAsPopup( | 318 void RenderWidgetHostViewWin::InitAsPopup( | 
| 319     RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) { | 319     RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) { | 
| 320   parent_hwnd_ = parent_host_view->GetNativeView(); | 320   parent_hwnd_ = parent_host_view->GetNativeView(); | 
| 321   close_on_deactivate_ = true; | 321   close_on_deactivate_ = true; | 
| 322   Create(parent_hwnd_, NULL, NULL, WS_POPUP, WS_EX_TOOLWINDOW); | 322   Create(parent_hwnd_, NULL, NULL, WS_POPUP, WS_EX_TOOLWINDOW); | 
| 323   MoveWindow(pos.x(), pos.y(), pos.width(), pos.height(), TRUE); | 323   MoveWindow(pos.x(), pos.y(), pos.width(), pos.height(), TRUE); | 
| 324   // Popups are not activated. | 324   // Popups are not activated. | 
| 325   ShowWindow(IsActivatable() ? SW_SHOW : SW_SHOWNA); | 325   ShowWindow(IsActivatable() ? SW_SHOW : SW_SHOWNA); | 
| 326 } | 326 } | 
| 327 | 327 | 
| 328 void RenderWidgetHostViewWin::InitAsFullscreen( | 328 void RenderWidgetHostViewWin::InitAsFullscreen() { | 
| 329     RenderWidgetHostView* parent_host_view) { |  | 
| 330   NOTIMPLEMENTED() << "Fullscreen not implemented on Win"; | 329   NOTIMPLEMENTED() << "Fullscreen not implemented on Win"; | 
| 331 } | 330 } | 
| 332 | 331 | 
| 333 RenderWidgetHost* RenderWidgetHostViewWin::GetRenderWidgetHost() const { | 332 RenderWidgetHost* RenderWidgetHostViewWin::GetRenderWidgetHost() const { | 
| 334   return render_widget_host_; | 333   return render_widget_host_; | 
| 335 } | 334 } | 
| 336 | 335 | 
| 337 void RenderWidgetHostViewWin::DidBecomeSelected() { | 336 void RenderWidgetHostViewWin::DidBecomeSelected() { | 
| 338   if (!is_hidden_) | 337   if (!is_hidden_) | 
| 339     return; | 338     return; | 
| (...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1810 } | 1809 } | 
| 1811 | 1810 | 
| 1812 // static | 1811 // static | 
| 1813 RenderWidgetHostView* | 1812 RenderWidgetHostView* | 
| 1814     RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1813     RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 
| 1815         gfx::NativeView native_view) { | 1814         gfx::NativeView native_view) { | 
| 1816   return ::IsWindow(native_view) ? | 1815   return ::IsWindow(native_view) ? | 
| 1817       reinterpret_cast<RenderWidgetHostView*>( | 1816       reinterpret_cast<RenderWidgetHostView*>( | 
| 1818           ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 1817           ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 
| 1819 } | 1818 } | 
| OLD | NEW | 
|---|