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/root_view.h" | 5 #include "ui/views/widget/root_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 type == ui::ET_MOUSE_EXITED); | 40 type == ui::ET_MOUSE_EXITED); |
41 SetType(type); | 41 SetType(type); |
42 } | 42 } |
43 | 43 |
44 virtual ~MouseEnterExitEvent() {} | 44 virtual ~MouseEnterExitEvent() {} |
45 }; | 45 }; |
46 | 46 |
47 } // namespace | 47 } // namespace |
48 | 48 |
49 // static | 49 // static |
50 const char RootView::kViewClassName[] = "views/RootView"; | 50 const char RootView::kViewClassName[] = "RootView"; |
51 | 51 |
52 //////////////////////////////////////////////////////////////////////////////// | 52 //////////////////////////////////////////////////////////////////////////////// |
53 // RootView, public: | 53 // RootView, public: |
54 | 54 |
55 // Creation and lifetime ------------------------------------------------------- | 55 // Creation and lifetime ------------------------------------------------------- |
56 | 56 |
57 RootView::RootView(Widget* widget) | 57 RootView::RootView(Widget* widget) |
58 : widget_(widget), | 58 : widget_(widget), |
59 mouse_pressed_handler_(NULL), | 59 mouse_pressed_handler_(NULL), |
60 mouse_move_handler_(NULL), | 60 mouse_move_handler_(NULL), |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 DispatchEventToTarget(p, ¬ify_event); | 682 DispatchEventToTarget(p, ¬ify_event); |
683 } | 683 } |
684 } | 684 } |
685 | 685 |
686 bool RootView::CanDispatchToTarget(ui::EventTarget* target) { | 686 bool RootView::CanDispatchToTarget(ui::EventTarget* target) { |
687 return event_dispatch_target_ == target; | 687 return event_dispatch_target_ == target; |
688 } | 688 } |
689 | 689 |
690 } // namespace internal | 690 } // namespace internal |
691 } // namespace views | 691 } // namespace views |
OLD | NEW |