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

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

Issue 1999083002: Finish eliminating PlatformWindowMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/native_widget_mus_unittest.cc ('k') | ui/views/mus/platform_window_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
6 #define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
7
8 #include <stdint.h>
9
10 #include <string>
11 #include <vector>
12
13 #include "base/macros.h"
14 #include "components/mus/public/cpp/window_observer.h"
15 #include "ui/platform_window/platform_window.h"
16 #include "ui/views/mus/mus_export.h"
17
18 namespace bitmap_uploader {
19 class BitmapUploader;
20 }
21
22 namespace shell {
23 class Connector;
24 }
25
26 namespace ui {
27 class ViewProp;
28 }
29
30 namespace views {
31
32 // This class has been marked for deletion. Its implementation is being rolled
33 // into views::NativeWidgetMus. See crbug.com/609555 for details.
34 class VIEWS_MUS_EXPORT PlatformWindowMus
35 : public NON_EXPORTED_BASE(ui::PlatformWindow) {
36 public:
37 PlatformWindowMus(ui::PlatformWindowDelegate* delegate,
38 shell::Connector* connector,
39 mus::Window* mus_window);
40 ~PlatformWindowMus() override;
41
42 // ui::PlatformWindow:
43 void Show() override;
44 void Hide() override;
45 void Close() override;
46 void SetBounds(const gfx::Rect& bounds) override;
47 gfx::Rect GetBounds() override;
48 void SetTitle(const base::string16& title) override;
49 void SetCapture() override;
50 void ReleaseCapture() override;
51 void ToggleFullscreen() override;
52 void Maximize() override;
53 void Minimize() override;
54 void Restore() override;
55 void SetCursor(ui::PlatformCursor cursor) override;
56 void MoveCursorTo(const gfx::Point& location) override;
57 void ConfineCursorToBounds(const gfx::Rect& bounds) override;
58 ui::PlatformImeController* GetPlatformImeController() override;
59
60 private:
61 friend class PlatformWindowMusTest;
62
63 ui::PlatformWindowDelegate* delegate_;
64 mus::Window* mus_window_;
65
66 // True if OnWindowDestroyed() has been received.
67 bool mus_window_destroyed_;
68
69 std::unique_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_;
70 std::unique_ptr<ui::ViewProp> prop_;
71 #ifndef NDEBUG
72 std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_;
73 #endif
74
75 DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus);
76 };
77
78 } // namespace views
79
80 #endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.cc ('k') | ui/views/mus/platform_window_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698