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

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

Issue 6462017: gtk: Improve fullscreen RenderWidgetHostViewGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update a comment Created 9 years, 10 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 | Annotate | Revision Log
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 <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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698