| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/widget/desktop_native_widget_aura.h" | 5 #include "ui/views/widget/desktop_native_widget_aura.h" |
| 6 | 6 |
| 7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/root_window.h" |
| 8 #include "ui/aura/root_window_host.h" | 8 #include "ui/aura/root_window_host.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/base/hit_test.h" | 10 #include "ui/base/hit_test.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 bool DesktopNativeWidgetAura::IsMinimized() const { | 263 bool DesktopNativeWidgetAura::IsMinimized() const { |
| 264 return desktop_root_window_host_->IsMinimized(); | 264 return desktop_root_window_host_->IsMinimized(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 void DesktopNativeWidgetAura::Restore() { | 267 void DesktopNativeWidgetAura::Restore() { |
| 268 desktop_root_window_host_->Restore(); | 268 desktop_root_window_host_->Restore(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void DesktopNativeWidgetAura::SetFullscreen(bool fullscreen) { | 271 void DesktopNativeWidgetAura::SetFullscreen(bool fullscreen) { |
| 272 desktop_root_window_host_->SetFullscreen(fullscreen); |
| 272 } | 273 } |
| 273 | 274 |
| 274 bool DesktopNativeWidgetAura::IsFullscreen() const { | 275 bool DesktopNativeWidgetAura::IsFullscreen() const { |
| 275 return false; | 276 return desktop_root_window_host_->IsFullscreen(); |
| 276 } | 277 } |
| 277 | 278 |
| 278 void DesktopNativeWidgetAura::SetOpacity(unsigned char opacity) { | 279 void DesktopNativeWidgetAura::SetOpacity(unsigned char opacity) { |
| 280 desktop_root_window_host_->SetOpacity(opacity); |
| 279 } | 281 } |
| 280 | 282 |
| 281 void DesktopNativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { | 283 void DesktopNativeWidgetAura::SetUseDragFrame(bool use_drag_frame) { |
| 282 } | 284 } |
| 283 | 285 |
| 284 void DesktopNativeWidgetAura::FlashFrame(bool flash_frame) { | 286 void DesktopNativeWidgetAura::FlashFrame(bool flash_frame) { |
| 287 desktop_root_window_host_->FlashFrame(flash_frame); |
| 285 } | 288 } |
| 286 | 289 |
| 287 bool DesktopNativeWidgetAura::IsAccessibleWidget() const { | 290 bool DesktopNativeWidgetAura::IsAccessibleWidget() const { |
| 288 return false; | 291 return false; |
| 289 } | 292 } |
| 290 | 293 |
| 291 void DesktopNativeWidgetAura::RunShellDrag(View* view, | 294 void DesktopNativeWidgetAura::RunShellDrag(View* view, |
| 292 const ui::OSExchangeData& data, | 295 const ui::OSExchangeData& data, |
| 293 const gfx::Point& location, | 296 const gfx::Point& location, |
| 294 int operation) { | 297 int operation) { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { | 439 ui::TouchStatus DesktopNativeWidgetAura::OnTouchEvent(ui::TouchEvent* event) { |
| 437 return native_widget_delegate_->OnTouchEvent(*event); | 440 return native_widget_delegate_->OnTouchEvent(*event); |
| 438 } | 441 } |
| 439 | 442 |
| 440 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( | 443 ui::EventResult DesktopNativeWidgetAura::OnGestureEvent( |
| 441 ui::GestureEvent* event) { | 444 ui::GestureEvent* event) { |
| 442 return native_widget_delegate_->OnGestureEvent(*event); | 445 return native_widget_delegate_->OnGestureEvent(*event); |
| 443 } | 446 } |
| 444 | 447 |
| 445 } // namespace views | 448 } // namespace views |
| OLD | NEW |