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

Side by Side Diff: components/mus/public/cpp/window.h

Issue 2013503002: Keep non-key event handling in-house for NativeWidgetMus Base URL: https://chromium.googlesource.com/chromium/src.git@native_widget_mus9
Patch Set: rebase Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 T GetLocalProperty(const WindowProperty<T>* property) const; 148 T GetLocalProperty(const WindowProperty<T>* property) const;
149 149
150 // Sets the |property| to its default value. Useful for avoiding a cast when 150 // Sets the |property| to its default value. Useful for avoiding a cast when
151 // setting to NULL. 151 // setting to NULL.
152 // 152 //
153 // These properties are only visible in the current process and are not 153 // These properties are only visible in the current process and are not
154 // shared with other mojo services. 154 // shared with other mojo services.
155 template <typename T> 155 template <typename T>
156 void ClearLocalProperty(const WindowProperty<T>* property); 156 void ClearLocalProperty(const WindowProperty<T>* property);
157 157
158 InputEventHandler* input_event_handler() {
159 return input_event_handler_;
160 }
158 void set_input_event_handler(InputEventHandler* input_event_handler) { 161 void set_input_event_handler(InputEventHandler* input_event_handler) {
159 input_event_handler_ = input_event_handler; 162 input_event_handler_ = input_event_handler;
160 } 163 }
161 164
162 // Observation. 165 // Observation.
163 void AddObserver(WindowObserver* observer); 166 void AddObserver(WindowObserver* observer);
164 void RemoveObserver(WindowObserver* observer); 167 void RemoveObserver(WindowObserver* observer);
165 168
166 // Tree. 169 // Tree.
167 Window* parent() { return parent_; } 170 Window* parent() { return parent_; }
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 }; 352 };
350 353
351 std::map<const void*, Value> prop_map_; 354 std::map<const void*, Value> prop_map_;
352 355
353 DISALLOW_COPY_AND_ASSIGN(Window); 356 DISALLOW_COPY_AND_ASSIGN(Window);
354 }; 357 };
355 358
356 } // namespace mus 359 } // namespace mus
357 360
358 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 361 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/mus/native_widget_mus.cc » ('j') | ui/views/mus/native_widget_mus_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698