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

Side by Side Diff: services/ui/public/cpp/lib/window_private.h

Issue 2189893002: services/ui: Create a proper component for the client-lib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 | « services/ui/public/cpp/input_event_handler.h ('k') | services/ui/public/cpp/output_surface.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_UI_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "mojo/public/cpp/bindings/array.h" 13 #include "mojo/public/cpp/bindings/array.h"
14 #include "services/ui/public/cpp/ui_export.h"
14 #include "services/ui/public/cpp/window.h" 15 #include "services/ui/public/cpp/window.h"
15 16
16 namespace ui { 17 namespace ui {
17 18
18 // This class is a friend of a Window and contains functions to mutate internal 19 // This class is a friend of a Window and contains functions to mutate internal
19 // state of Window. 20 // state of Window.
20 class WindowPrivate { 21 class UI_EXPORT WindowPrivate {
21 public: 22 public:
22 explicit WindowPrivate(Window* window); 23 explicit WindowPrivate(Window* window);
23 ~WindowPrivate(); 24 ~WindowPrivate();
24 25
25 // Creates and returns a new Window. Caller owns the return value. 26 // Creates and returns a new Window. Caller owns the return value.
26 static Window* LocalCreate(); 27 static Window* LocalCreate();
27 28
28 base::ObserverList<WindowObserver>* observers() { 29 base::ObserverList<WindowObserver>* observers() {
29 return &window_->observers_; 30 return &window_->observers_;
30 } 31 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 private: 93 private:
93 Window* window_; 94 Window* window_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 96 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
96 }; 97 };
97 98
98 } // namespace ui 99 } // namespace ui
99 100
100 #endif // SERVICES_UI_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 101 #endif // SERVICES_UI_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/input_event_handler.h ('k') | services/ui/public/cpp/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698