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 "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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
579 delete this; | 579 delete this; |
580 } | 580 } |
581 | 581 |
582 void RenderWidgetHostViewAura::OnWindowVisibilityChanged(bool visible) { | 582 void RenderWidgetHostViewAura::OnWindowVisibilityChanged(bool visible) { |
583 } | 583 } |
584 | 584 |
585 //////////////////////////////////////////////////////////////////////////////// | 585 //////////////////////////////////////////////////////////////////////////////// |
586 // RenderWidgetHostViewAura, aura::client::ActivationDelegate implementation: | 586 // RenderWidgetHostViewAura, aura::client::ActivationDelegate implementation: |
587 | 587 |
588 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) { | 588 bool RenderWidgetHostViewAura::ShouldActivate(aura::Event* event) { |
589 return false; | 589 return is_fullscreen_; |
Daniel Erat
2011/12/22 19:33:19
I suspect that the desired approach is to leave th
| |
590 } | 590 } |
591 | 591 |
592 void RenderWidgetHostViewAura::OnActivated() { | 592 void RenderWidgetHostViewAura::OnActivated() { |
593 } | 593 } |
594 | 594 |
595 void RenderWidgetHostViewAura::OnLostActive() { | 595 void RenderWidgetHostViewAura::OnLostActive() { |
596 } | 596 } |
597 | 597 |
598 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 598 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
599 //////////////////////////////////////////////////////////////////////////////// | 599 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
632 // static | 632 // static |
633 void RenderWidgetHostView::GetDefaultScreenInfo( | 633 void RenderWidgetHostView::GetDefaultScreenInfo( |
634 WebKit::WebScreenInfo* results) { | 634 WebKit::WebScreenInfo* results) { |
635 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 635 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
636 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 636 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
637 results->availableRect = results->rect; | 637 results->availableRect = results->rect; |
638 // TODO(derat): Don't hardcode this? | 638 // TODO(derat): Don't hardcode this? |
639 results->depth = 24; | 639 results->depth = 24; |
640 results->depthPerComponent = 8; | 640 results->depthPerComponent = 8; |
641 } | 641 } |
OLD | NEW |