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

Side by Side Diff: ui/views/mus/window_tree_host_mus.h

Issue 1967543002: Move ShowState-related code from PlatformWindowMus to NativeWidgetMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor show_state checks Created 4 years, 7 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/views/mus/platform_window_mus.cc ('k') | ui/views/mus/window_tree_host_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 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 UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 5 #ifndef UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 6 #define UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/aura/window_tree_host_platform.h" 9 #include "ui/aura/window_tree_host_platform.h"
10 #include "ui/views/mus/mus_export.h" 10 #include "ui/views/mus/mus_export.h"
(...skipping 15 matching lines...) Expand all
26 class PlatformWindowMus; 26 class PlatformWindowMus;
27 27
28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform { 28 class VIEWS_MUS_EXPORT WindowTreeHostMus : public aura::WindowTreeHostPlatform {
29 public: 29 public:
30 WindowTreeHostMus(shell::Connector* connector, 30 WindowTreeHostMus(shell::Connector* connector,
31 NativeWidgetMus* native_widget, 31 NativeWidgetMus* native_widget,
32 mus::Window* window); 32 mus::Window* window);
33 ~WindowTreeHostMus() override; 33 ~WindowTreeHostMus() override;
34 34
35 PlatformWindowMus* platform_window(); 35 PlatformWindowMus* platform_window();
36 ui::PlatformWindowState show_state() const { return show_state_; }
37 36
38 private: 37 private:
39 // aura::WindowTreeHostPlatform: 38 // aura::WindowTreeHostPlatform:
40 void DispatchEvent(ui::Event* event) override; 39 void DispatchEvent(ui::Event* event) override;
41 void OnClosed() override; 40 void OnClosed() override;
42 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
43 void OnActivationChanged(bool active) override; 41 void OnActivationChanged(bool active) override;
44 void OnCloseRequest() override; 42 void OnCloseRequest() override;
45 43
46 NativeWidgetMus* native_widget_; 44 NativeWidgetMus* native_widget_;
47 std::unique_ptr<InputMethodMUS> input_method_; 45 std::unique_ptr<InputMethodMUS> input_method_;
48 ui::PlatformWindowState show_state_;
49 46
50 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus); 47 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMus);
51 }; 48 };
52 49
53 } // namespace views 50 } // namespace views
54 51
55 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_ 52 #endif // UI_VIEWS_MUS_WINDOW_TREE_HOST_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/platform_window_mus.cc ('k') | ui/views/mus/window_tree_host_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698