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

Side by Side Diff: components/mus/public/cpp/tests/test_window_tree.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_TESTS_TEST_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/mus/public/interfaces/window_tree.mojom.h" 9 #include "components/mus/public/interfaces/window_tree.mojom.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 mojom::OrderDirection direction, 59 mojom::OrderDirection direction,
60 const ReorderWindowCallback& callback) override; 60 const ReorderWindowCallback& callback) override;
61 void GetWindowTree(uint32_t window_id, 61 void GetWindowTree(uint32_t window_id,
62 const GetWindowTreeCallback& callback) override; 62 const GetWindowTreeCallback& callback) override;
63 void Embed(uint32_t window_id, 63 void Embed(uint32_t window_id,
64 mojom::WindowTreeClientPtr client, 64 mojom::WindowTreeClientPtr client,
65 uint32_t policy_bitmask, 65 uint32_t policy_bitmask,
66 const EmbedCallback& callback) override; 66 const EmbedCallback& callback) override;
67 void SetFocus(uint32_t window_id) override; 67 void SetFocus(uint32_t window_id) override;
68 void SetCanFocus(uint32_t window_id, bool can_focus) override; 68 void SetCanFocus(uint32_t window_id, bool can_focus) override;
69 void SetPredefinedCursor(uint32_t change_id,
70 uint32_t window_id,
71 mus::mojom::Cursor cursor_id) override;
69 void SetWindowTextInputState(uint32_t window_id, 72 void SetWindowTextInputState(uint32_t window_id,
70 mojo::TextInputStatePtr state) override; 73 mojo::TextInputStatePtr state) override;
71 void SetImeVisibility(uint32_t window_id, 74 void SetImeVisibility(uint32_t window_id,
72 bool visible, 75 bool visible,
73 mojo::TextInputStatePtr state) override; 76 mojo::TextInputStatePtr state) override;
74 void OnWindowInputEventAck(uint32_t event_id) override; 77 void OnWindowInputEventAck(uint32_t event_id) override;
75 void WmResponse(uint32_t change_id, bool response) override; 78 void WmResponse(uint32_t change_id, bool response) override;
76 79
77 bool got_change_; 80 bool got_change_;
78 uint32_t change_id_; 81 uint32_t change_id_;
79 82
80 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); 83 DISALLOW_COPY_AND_ASSIGN(TestWindowTree);
81 }; 84 };
82 85
83 } // namespace mus 86 } // namespace mus
84 87
85 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 88 #endif // COMPONENTS_MUS_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | components/mus/public/cpp/tests/test_window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698