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

Side by Side Diff: ash/root_window_settings.h

Issue 1540753002: Switch to standard integer types in ash/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: arraysize Created 5 years 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 | « ash/root_window_controller.h ('k') | ash/rotator/screen_rotation_animation.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_ROOT_WINDOW_SETTINGS_H_ 5 #ifndef ASH_ROOT_WINDOW_SETTINGS_H_
6 #define ASH_ROOT_WINDOW_SETTINGS_H_ 6 #define ASH_ROOT_WINDOW_SETTINGS_H_
7 7
8 #include <stdint.h>
9
8 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 11
11 namespace aura { 12 namespace aura {
12 class Window; 13 class Window;
13 } 14 }
14 15
15 namespace ash { 16 namespace ash {
16 17
17 class RootWindowController; 18 class RootWindowController;
18 19
19 // Per root window information should be stored here 20 // Per root window information should be stored here
20 // instead of using plain aura root window property because 21 // instead of using plain aura root window property because
21 // it can prevent mis-using on non root window. 22 // it can prevent mis-using on non root window.
22 struct RootWindowSettings { 23 struct RootWindowSettings {
23 RootWindowSettings(); 24 RootWindowSettings();
24 25
25 // ID of the display associated with the root window. 26 // ID of the display associated with the root window.
26 int64 display_id; 27 int64_t display_id;
27 28
28 // RootWindowController for the root window. This may be NULL 29 // RootWindowController for the root window. This may be NULL
29 // for the root window used for mirroring. 30 // for the root window used for mirroring.
30 RootWindowController* controller; 31 RootWindowController* controller;
31 }; 32 };
32 33
33 // Initializes and returns RootWindowSettings for |root|. 34 // Initializes and returns RootWindowSettings for |root|.
34 // It is owned by the |root|. 35 // It is owned by the |root|.
35 RootWindowSettings* InitRootWindowSettings(aura::Window* root); 36 RootWindowSettings* InitRootWindowSettings(aura::Window* root);
36 37
37 // Returns the RootWindowSettings for |root|. 38 // Returns the RootWindowSettings for |root|.
38 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::Window* root); 39 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::Window* root);
39 40
40 // const version of GetRootWindowSettings. 41 // const version of GetRootWindowSettings.
41 ASH_EXPORT const RootWindowSettings* 42 ASH_EXPORT const RootWindowSettings*
42 GetRootWindowSettings(const aura::Window* root); 43 GetRootWindowSettings(const aura::Window* root);
43 44
44 } // namespace ash 45 } // namespace ash
45 46
46 #endif // ASH_ROOT_WINDOW_SETTINGS_H_ 47 #endif // ASH_ROOT_WINDOW_SETTINGS_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/rotator/screen_rotation_animation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698