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

Side by Side Diff: ui/views/test/platform_test_helper.h

Issue 2728373003: Fixs bug resulting in double event delivery in mus (Closed)
Patch Set: comments Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_ 5 #ifndef UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_
6 #define UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_ 6 #define UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 16 matching lines...) Expand all
27 static void SetIsMus(); 27 static void SetIsMus();
28 static bool IsMus(); 28 static bool IsMus();
29 29
30 // Called once the ViewsTestHelper has been created, but before SetUp() is 30 // Called once the ViewsTestHelper has been created, but before SetUp() is
31 // called. 31 // called.
32 virtual void OnTestHelperCreated(ViewsTestHelper* helper) {} 32 virtual void OnTestHelperCreated(ViewsTestHelper* helper) {}
33 33
34 // Simulate an OS-level destruction of the native window held by |widget|. 34 // Simulate an OS-level destruction of the native window held by |widget|.
35 virtual void SimulateNativeDestroy(Widget* widget); 35 virtual void SimulateNativeDestroy(Widget* widget);
36 36
37 virtual void DisableMusInputMethod(Widget* widget) {}
38
37 private: 39 private:
38 DISALLOW_COPY_AND_ASSIGN(PlatformTestHelper); 40 DISALLOW_COPY_AND_ASSIGN(PlatformTestHelper);
39 }; 41 };
40 42
41 } // namespace views 43 } // namespace views
42 44
43 #endif // UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_ 45 #endif // UI_VIEWS_TEST_PLATFORM_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698