Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ui/views/widget/root_view.cc

Issue 15419002: views: Store only the name of the class in kViewClassName constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
682 DispatchEventToTarget(p, &notify_event); 682 DispatchEventToTarget(p, &notify_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
OLDNEW
« no previous file with comments | « ui/views/view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698