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

Side by Side Diff: ui/aura/mus/window_port_mus.h

Issue 2972963002: [mus+ash] Implements hit-test client in Aura (Closed)
Patch Set: [mus ash] Implements hit-test client in Aura (rebased) Created 3 years, 5 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
« no previous file with comments | « ui/aura/mus/hit_test_data_provider_mus_unittest.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AURA_MUS_WINDOW_PORT_MUS_H_ 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_
6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 public: 51 public:
52 // See WindowMus's constructor for details on |window_mus_type|. 52 // See WindowMus's constructor for details on |window_mus_type|.
53 WindowPortMus(WindowTreeClient* client, WindowMusType window_mus_type); 53 WindowPortMus(WindowTreeClient* client, WindowMusType window_mus_type);
54 ~WindowPortMus() override; 54 ~WindowPortMus() override;
55 55
56 static WindowPortMus* Get(Window* window); 56 static WindowPortMus* Get(Window* window);
57 57
58 Window* window() { return window_; } 58 Window* window() { return window_; }
59 const Window* window() const { return window_; } 59 const Window* window() const { return window_; }
60 60
61 cc::FrameSinkId frame_sink_id() const { return frame_sink_id_; }
62
61 ClientSurfaceEmbedder* client_surface_embedder() const { 63 ClientSurfaceEmbedder* client_surface_embedder() const {
62 return client_surface_embedder_.get(); 64 return client_surface_embedder_.get();
63 } 65 }
64 66
65 const cc::SurfaceInfo& PrimarySurfaceInfoForTesting() const { 67 const cc::SurfaceInfo& PrimarySurfaceInfoForTesting() const {
66 return primary_surface_info_; 68 return primary_surface_info_;
67 } 69 }
68 70
69 void SetTextInputState(mojo::TextInputStatePtr state); 71 void SetTextInputState(mojo::TextInputStatePtr state);
70 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); 72 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state);
(...skipping 20 matching lines...) Expand all
91 93
92 std::unique_ptr<viz::ClientLayerTreeFrameSink> RequestLayerTreeFrameSink( 94 std::unique_ptr<viz::ClientLayerTreeFrameSink> RequestLayerTreeFrameSink(
93 scoped_refptr<cc::ContextProvider> context_provider, 95 scoped_refptr<cc::ContextProvider> context_provider,
94 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); 96 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
95 97
96 private: 98 private:
97 friend class WindowPortMusTestApi; 99 friend class WindowPortMusTestApi;
98 friend class WindowTreeClient; 100 friend class WindowTreeClient;
99 friend class WindowTreeClientPrivate; 101 friend class WindowTreeClientPrivate;
100 friend class WindowTreeHostMus; 102 friend class WindowTreeHostMus;
103 friend class HitTestDataProviderMusTest;
101 104
102 using ServerChangeIdType = uint8_t; 105 using ServerChangeIdType = uint8_t;
103 106
104 // Changes to the underlying Window originating from the server must be done 107 // Changes to the underlying Window originating from the server must be done
105 // in such a way that the same change is not applied back to the server. To 108 // in such a way that the same change is not applied back to the server. To
106 // accomplish this every changes from the server is associated with at least 109 // accomplish this every changes from the server is associated with at least
107 // one ServerChange. If the underlying Window ends up calling back to this 110 // one ServerChange. If the underlying Window ends up calling back to this
108 // class and the change is expected then the change is ignored and not sent to 111 // class and the change is expected then the change is ignored and not sent to
109 // the server. For example, here's the flow when the server changes the 112 // the server. For example, here's the flow when the server changes the
110 // bounds: 113 // bounds:
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // for a local aura::Window, we need keep a weak ptr of it, so we can update 305 // for a local aura::Window, we need keep a weak ptr of it, so we can update
303 // the local surface id when necessary. 306 // the local surface id when necessary.
304 base::WeakPtr<viz::ClientLayerTreeFrameSink> local_layer_tree_frame_sink_; 307 base::WeakPtr<viz::ClientLayerTreeFrameSink> local_layer_tree_frame_sink_;
305 308
306 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 309 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
307 }; 310 };
308 311
309 } // namespace aura 312 } // namespace aura
310 313
311 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 314 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/hit_test_data_provider_mus_unittest.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698