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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 9026013: aura: Allow fullscreen RWHVAs (i.e. Flash) to be focused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 11 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) 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 "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/backing_store_skia.h" 8 #include "content/browser/renderer_host/backing_store_skia.h"
9 #include "content/browser/renderer_host/render_widget_host.h" 9 #include "content/browser/renderer_host/render_widget_host.h"
10 #include "content/browser/renderer_host/web_input_event_aura.h" 10 #include "content/browser/renderer_host/web_input_event_aura.h"
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 delete this; 790 delete this;
791 } 791 }
792 792
793 void RenderWidgetHostViewAura::OnWindowVisibilityChanged(bool visible) { 793 void RenderWidgetHostViewAura::OnWindowVisibilityChanged(bool visible) {
794 } 794 }
795 795
796 //////////////////////////////////////////////////////////////////////////////// 796 ////////////////////////////////////////////////////////////////////////////////
797 // RenderWidgetHostViewAura, aura::client::ActivationDelegate implementation: 797 // RenderWidgetHostViewAura, aura::client::ActivationDelegate implementation:
798 798
799 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) { 799 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) {
800 return false; 800 return is_fullscreen_;
801 } 801 }
802 802
803 void RenderWidgetHostViewAura::OnActivated() { 803 void RenderWidgetHostViewAura::OnActivated() {
804 } 804 }
805 805
806 void RenderWidgetHostViewAura::OnLostActive() { 806 void RenderWidgetHostViewAura::OnLostActive() {
807 } 807 }
808 808
809 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 809 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
810 //////////////////////////////////////////////////////////////////////////////// 810 ////////////////////////////////////////////////////////////////////////////////
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 // static 857 // static
858 void RenderWidgetHostView::GetDefaultScreenInfo( 858 void RenderWidgetHostView::GetDefaultScreenInfo(
859 WebKit::WebScreenInfo* results) { 859 WebKit::WebScreenInfo* results) {
860 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); 860 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize();
861 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); 861 results->rect = WebKit::WebRect(0, 0, size.width(), size.height());
862 results->availableRect = results->rect; 862 results->availableRect = results->rect;
863 // TODO(derat): Don't hardcode this? 863 // TODO(derat): Don't hardcode this?
864 results->depth = 24; 864 results->depth = 24;
865 results->depthPerComponent = 8; 865 results->depthPerComponent = 8;
866 } 866 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | content/browser/renderer_host/render_widget_host_view_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698