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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ui/aura/desktop.h" | 8 #include "ui/aura/desktop.h" |
9 #include "ui/aura/event.h" | 9 #include "ui/aura/event.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 } | 391 } |
392 | 392 |
393 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { | 393 gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const { |
394 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); | 394 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); |
395 } | 395 } |
396 | 396 |
397 //////////////////////////////////////////////////////////////////////////////// | 397 //////////////////////////////////////////////////////////////////////////////// |
398 // NativeWidgetAura, views::InputMethodDelegate implementation: | 398 // NativeWidgetAura, views::InputMethodDelegate implementation: |
399 | 399 |
400 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { | 400 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { |
401 NOTIMPLEMENTED(); | 401 delegate_->OnKeyEvent(key); |
402 } | 402 } |
403 | 403 |
404 //////////////////////////////////////////////////////////////////////////////// | 404 //////////////////////////////////////////////////////////////////////////////// |
405 // NativeWidgetAura, aura::WindowDelegate implementation: | 405 // NativeWidgetAura, aura::WindowDelegate implementation: |
406 | 406 |
407 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 407 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
408 const gfx::Rect& new_bounds) { | 408 const gfx::Rect& new_bounds) { |
409 if (old_bounds.size() != new_bounds.size()) | 409 if (old_bounds.size() != new_bounds.size()) |
410 delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); | 410 delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); |
411 } | 411 } |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } | 555 } |
556 | 556 |
557 // static | 557 // static |
558 bool NativeWidgetPrivate::IsMouseButtonDown() { | 558 bool NativeWidgetPrivate::IsMouseButtonDown() { |
559 NOTIMPLEMENTED(); | 559 NOTIMPLEMENTED(); |
560 return false; | 560 return false; |
561 } | 561 } |
562 | 562 |
563 } // namespace internal | 563 } // namespace internal |
564 } // namespace views | 564 } // namespace views |
OLD | NEW |