| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 void RenderWidgetHostViewAura::UnlockMouse() { | 390 void RenderWidgetHostViewAura::UnlockMouse() { |
| 391 // http://crbug.com/102563 | 391 // http://crbug.com/102563 |
| 392 NOTIMPLEMENTED(); | 392 NOTIMPLEMENTED(); |
| 393 host_->LostMouseLock(); | 393 host_->LostMouseLock(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 //////////////////////////////////////////////////////////////////////////////// | 396 //////////////////////////////////////////////////////////////////////////////// |
| 397 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: | 397 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: |
| 398 | 398 |
| 399 void RenderWidgetHostViewAura::OnBoundsChanging(gfx::Rect* new_bounds) { | 399 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { |
| 400 return gfx::Size(); |
| 400 } | 401 } |
| 401 | 402 |
| 402 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 403 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 403 const gfx::Rect& new_bounds) { | 404 const gfx::Rect& new_bounds) { |
| 404 // We don't care about this one, we are always sized via SetSize() or | 405 // We don't care about this one, we are always sized via SetSize() or |
| 405 // SetBounds(). | 406 // SetBounds(). |
| 406 } | 407 } |
| 407 | 408 |
| 408 void RenderWidgetHostViewAura::OnFocus() { | 409 void RenderWidgetHostViewAura::OnFocus() { |
| 409 host_->GotFocus(); | 410 host_->GotFocus(); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 // static | 536 // static |
| 536 void RenderWidgetHostView::GetDefaultScreenInfo( | 537 void RenderWidgetHostView::GetDefaultScreenInfo( |
| 537 WebKit::WebScreenInfo* results) { | 538 WebKit::WebScreenInfo* results) { |
| 538 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); | 539 const gfx::Size size = gfx::Screen::GetPrimaryMonitorSize(); |
| 539 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); | 540 results->rect = WebKit::WebRect(0, 0, size.width(), size.height()); |
| 540 results->availableRect = results->rect; | 541 results->availableRect = results->rect; |
| 541 // TODO(derat): Don't hardcode this? | 542 // TODO(derat): Don't hardcode this? |
| 542 results->depth = 24; | 543 results->depth = 24; |
| 543 results->depthPerComponent = 8; | 544 results->depthPerComponent = 8; |
| 544 } | 545 } |
| OLD | NEW |