Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 3055009: Use RenderWidget(Host) for full screen (Closed)
Patch Set: Add IPC::SyncMessage dependency. Fix auto complete. Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_win.h" 8 #include "app/l10n_util_win.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 void RenderWidgetHostViewWin::InitAsPopup( 325 void RenderWidgetHostViewWin::InitAsPopup(
326 RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) { 326 RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) {
327 parent_hwnd_ = parent_host_view->GetNativeView(); 327 parent_hwnd_ = parent_host_view->GetNativeView();
328 close_on_deactivate_ = true; 328 close_on_deactivate_ = true;
329 Create(parent_hwnd_, NULL, NULL, WS_POPUP, WS_EX_TOOLWINDOW); 329 Create(parent_hwnd_, NULL, NULL, WS_POPUP, WS_EX_TOOLWINDOW);
330 MoveWindow(pos.x(), pos.y(), pos.width(), pos.height(), TRUE); 330 MoveWindow(pos.x(), pos.y(), pos.width(), pos.height(), TRUE);
331 // Popups are not activated. 331 // Popups are not activated.
332 ShowWindow(IsActivatable() ? SW_SHOW : SW_SHOWNA); 332 ShowWindow(IsActivatable() ? SW_SHOW : SW_SHOWNA);
333 } 333 }
334 334
335 void RenderWidgetHostViewWin::InitAsFullscreen(
336 RenderWidgetHostView* parent_host_view) {
337 NOTIMPLEMENTED() << "Fullscreen not implemented on Win";
338 }
339
335 RenderWidgetHost* RenderWidgetHostViewWin::GetRenderWidgetHost() const { 340 RenderWidgetHost* RenderWidgetHostViewWin::GetRenderWidgetHost() const {
336 return render_widget_host_; 341 return render_widget_host_;
337 } 342 }
338 343
339 void RenderWidgetHostViewWin::DidBecomeSelected() { 344 void RenderWidgetHostViewWin::DidBecomeSelected() {
340 if (!is_hidden_) 345 if (!is_hidden_)
341 return; 346 return;
342 347
343 if (tab_switch_paint_time_.is_null()) 348 if (tab_switch_paint_time_.is_null())
344 tab_switch_paint_time_ = TimeTicks::Now(); 349 tab_switch_paint_time_ = TimeTicks::Now();
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1722 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1718 gfx::NativeView native_view) { 1723 gfx::NativeView native_view) {
1719 if (::IsWindow(native_view)) { 1724 if (::IsWindow(native_view)) {
1720 HANDLE raw_render_host_view = ::GetProp(native_view, 1725 HANDLE raw_render_host_view = ::GetProp(native_view,
1721 kRenderWidgetHostViewKey); 1726 kRenderWidgetHostViewKey);
1722 if (raw_render_host_view) 1727 if (raw_render_host_view)
1723 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view); 1728 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view);
1724 } 1729 }
1725 return NULL; 1730 return NULL;
1726 } 1731 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | chrome/browser/renderer_host/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698