summaryrefslogtreecommitdiffstats
path: root/ui/views/events/focus_event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/events/focus_event.cc')
-rw-r--r--ui/views/events/focus_event.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/ui/views/events/focus_event.cc b/ui/views/events/focus_event.cc
new file mode 100644
index 0000000..4a05999
--- /dev/null
+++ b/ui/views/events/focus_event.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/views/events/focus_event.h"
+
+namespace ui {
+
+////////////////////////////////////////////////////////////////////////////////
+// FocusEvent, public:
+
+FocusEvent::FocusEvent(Type type, Reason reason, TraversalDirection direction)
+ : type_(type),
+ reason_(reason),
+ direction_(direction),
+ Event(ET_FOCUS_CHANGE, 0) {
+}
+
+} // namespace ui