| 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/event.h" | 7 #include "ui/aura/event.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
| 10 #include "ui/gfx/compositor/layer.h" | 10 #include "ui/gfx/compositor/layer.h" |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 //////////////////////////////////////////////////////////////////////////////// | 365 //////////////////////////////////////////////////////////////////////////////// |
| 366 // NativeWidgetAura, views::InputMethodDelegate implementation: | 366 // NativeWidgetAura, views::InputMethodDelegate implementation: |
| 367 | 367 |
| 368 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { | 368 void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) { |
| 369 NOTIMPLEMENTED(); | 369 NOTIMPLEMENTED(); |
| 370 } | 370 } |
| 371 | 371 |
| 372 //////////////////////////////////////////////////////////////////////////////// | 372 //////////////////////////////////////////////////////////////////////////////// |
| 373 // NativeWidgetAura, aura::WindowDelegate implementation: | 373 // NativeWidgetAura, aura::WindowDelegate implementation: |
| 374 | 374 |
| 375 void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 376 const gfx::Rect& new_bounds) { |
| 377 if (old_bounds.size() != new_bounds.size()) |
| 378 delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); |
| 379 } |
| 380 |
| 375 void NativeWidgetAura::OnFocus() { | 381 void NativeWidgetAura::OnFocus() { |
| 376 delegate_->OnNativeFocus(window_); | 382 delegate_->OnNativeFocus(window_); |
| 377 } | 383 } |
| 378 | 384 |
| 379 void NativeWidgetAura::OnBlur() { | 385 void NativeWidgetAura::OnBlur() { |
| 380 delegate_->OnNativeBlur(NULL); | 386 delegate_->OnNativeBlur(NULL); |
| 381 } | 387 } |
| 382 | 388 |
| 383 bool NativeWidgetAura::OnKeyEvent(aura::KeyEvent* event) { | 389 bool NativeWidgetAura::OnKeyEvent(aura::KeyEvent* event) { |
| 384 return delegate_->OnKeyEvent(KeyEvent(event)); | 390 return delegate_->OnKeyEvent(KeyEvent(event)); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 } | 481 } |
| 476 | 482 |
| 477 // static | 483 // static |
| 478 bool NativeWidgetPrivate::IsMouseButtonDown() { | 484 bool NativeWidgetPrivate::IsMouseButtonDown() { |
| 479 NOTIMPLEMENTED(); | 485 NOTIMPLEMENTED(); |
| 480 return false; | 486 return false; |
| 481 } | 487 } |
| 482 | 488 |
| 483 } // namespace internal | 489 } // namespace internal |
| 484 } // namespace views | 490 } // namespace views |
| OLD | NEW |