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

Side by Side Diff: ui/aura/window_port_local.h

Issue 2446893005: Adds a porting layer so aura can be made to work with mus (Closed)
Patch Set: better Created 4 years, 1 month 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/window_port.cc ('k') | ui/aura/window_port_local.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_AURA_WINDOW_PORT_LOCAL_H_
6 #define UI_AURA_WINDOW_PORT_LOCAL_H_
7
8 #include "base/macros.h"
9 #include "ui/aura/window_port.h"
10
11 namespace aura {
12
13 class Window;
14
15 // WindowPort implementation for classic aura, e.g. not mus.
16 class AURA_EXPORT WindowPortLocal : public WindowPort {
17 public:
18 explicit WindowPortLocal(Window* window);
19 ~WindowPortLocal() override;
20
21 // WindowPort:
22 std::unique_ptr<WindowPortInitData> OnPreInit(Window* window) override;
23 void OnPostInit(std::unique_ptr<WindowPortInitData> init_data) override;
24 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
25 void OnWillAddChild(Window* child) override;
26 void OnWillRemoveChild(Window* child) override;
27 void OnWillMoveChild(size_t current_index, size_t dest_index) override;
28 void OnVisibilityChanged(bool visible) override;
29 void OnDidChangeBounds(const gfx::Rect& old_bounds,
30 const gfx::Rect& new_bounds) override;
31 std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty(
32 const void* key) override;
33 void OnPropertyChanged(const void* key,
34 std::unique_ptr<WindowPortPropertyData> data) override;
35
36 private:
37 Window* window_;
38
39 DISALLOW_COPY_AND_ASSIGN(WindowPortLocal);
40 };
41
42 } // namespace aura
43
44 #endif // UI_AURA_WINDOW_PORT_LOCAL_H_
OLDNEW
« no previous file with comments | « ui/aura/window_port.cc ('k') | ui/aura/window_port_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698