| 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_views.h" | 5 #include "views/widget/native_widget_views.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "ui/base/hit_test.h" | 8 #include "ui/base/hit_test.h" |
| 9 #include "ui/gfx/compositor/compositor.h" | 9 #include "ui/gfx/compositor/compositor.h" |
| 10 #include "ui/gfx/compositor/layer.h" | 10 #include "ui/gfx/compositor/layer.h" |
| 11 #include "ui/gfx/compositor/layer_animator.h" | 11 #include "ui/gfx/compositor/layer_animator.h" |
| 12 #include "views/view.h" | 12 #include "views/view.h" |
| 13 #include "views/views_delegate.h" | 13 #include "views/views_delegate.h" |
| 14 #include "views/widget/native_widget_view.h" | 14 #include "views/widget/native_widget_view.h" |
| 15 #include "views/widget/root_view.h" | 15 #include "views/widget/root_view.h" |
| 16 #include "views/widget/tooltip_manager_views.h" | 16 #include "views/widget/tooltip_manager_views.h" |
| 17 #include "views/widget/window_manager.h" | 17 #include "views/widget/window_manager.h" |
| 18 | 18 |
| 19 #if defined(HAVE_IBUS) | 19 #if defined(HAVE_IBUS) |
| 20 #include "views/ime/input_method_ibus.h" | 20 #include "ui/views/ime/input_method_ibus.h" |
| 21 #else | 21 #else |
| 22 #include "views/ime/mock_input_method.h" | 22 #include "ui/views/ime/mock_input_method.h" |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 gfx::Rect AdjustRectOriginForParentWidget(const gfx::Rect& rect, | 27 gfx::Rect AdjustRectOriginForParentWidget(const gfx::Rect& rect, |
| 28 const views::Widget* parent) { | 28 const views::Widget* parent) { |
| 29 if (!parent) | 29 if (!parent) |
| 30 return rect; | 30 return rect; |
| 31 | 31 |
| 32 gfx::Rect adjusted = rect; | 32 gfx::Rect adjusted = rect; |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 639 } |
| 640 default: | 640 default: |
| 641 // Everything else falls into standard client event handling. | 641 // Everything else falls into standard client event handling. |
| 642 break; | 642 break; |
| 643 } | 643 } |
| 644 } | 644 } |
| 645 return false; | 645 return false; |
| 646 } | 646 } |
| 647 | 647 |
| 648 } // namespace views | 648 } // namespace views |
| OLD | NEW |