| 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 "views/widget/native_widget_aura.h" | 5 #include "views/widget/native_widget_aura.h" |
| 6 | 6 |
| 7 #include "ui/aura/desktop.h" | 7 #include "ui/aura/desktop.h" |
| 8 #include "ui/aura/event.h" | 8 #include "ui/aura/event.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 378 } |
| 379 | 379 |
| 380 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { | 380 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { |
| 381 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); | 381 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); |
| 382 } | 382 } |
| 383 | 383 |
| 384 //////////////////////////////////////////////////////////////////////////////// | 384 //////////////////////////////////////////////////////////////////////////////// |
| 385 // NativeWidgetAura, views::InputMethodDelegate implementation: | 385 // NativeWidgetAura, views::InputMethodDelegate implementation: |
| 386 | 386 |
| 387 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { | 387 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { |
| 388 NOTIMPLEMENTED(); | 388 delegate_->OnKeyEvent(key); |
| 389 } | 389 } |
| 390 | 390 |
| 391 //////////////////////////////////////////////////////////////////////////////// | 391 //////////////////////////////////////////////////////////////////////////////// |
| 392 // NativeWidgetAura, aura::WindowDelegate implementation: | 392 // NativeWidgetAura, aura::WindowDelegate implementation: |
| 393 | 393 |
| 394 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 394 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 395 const gfx::Rect& new_bounds) { | 395 const gfx::Rect& new_bounds) { |
| 396 if (old_bounds.size() != new_bounds.size()) | 396 if (old_bounds.size() != new_bounds.size()) |
| 397 delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); | 397 delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); |
| 398 } | 398 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 } | 542 } |
| 543 | 543 |
| 544 // static | 544 // static |
| 545 bool NativeWidgetPrivate::IsMouseButtonDown() { | 545 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 546 NOTIMPLEMENTED(); | 546 NOTIMPLEMENTED(); |
| 547 return false; | 547 return false; |
| 548 } | 548 } |
| 549 | 549 |
| 550 } // namespace internal | 550 } // namespace internal |
| 551 } // namespace views | 551 } // namespace views |
| OLD | NEW |