Use PPB_Console interface to send logs from the client plugin
[chromium-blink-merge.git] / ash / root_window_settings.h
blobdc6764738b72e09e9fb4101084f7a1d90edeaed2
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
3 // found in the LICENSE file.
5 #ifndef ASH_ROOT_WINDOW_SETTINGS_H_
6 #define ASH_ROOT_WINDOW_SETTINGS_H_
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
11 namespace aura {
12 class Window;
15 namespace ash {
17 class RootWindowController;
19 // Per root window information should be stored here
20 // instead of using plain aura root window property because
21 // it can prevent mis-using on non root window.
22 struct RootWindowSettings {
23 RootWindowSettings();
25 // ID of the display associated with the root window.
26 int64 display_id;
28 // RootWindowController for the root window. This may be NULL
29 // for the root window used for mirroring.
30 RootWindowController* controller;
33 // Initializes and returns RootWindowSettings for |root|.
34 // It is owned by the |root|.
35 RootWindowSettings* InitRootWindowSettings(aura::Window* root);
37 // Returns the RootWindowSettings for |root|.
38 ASH_EXPORT RootWindowSettings* GetRootWindowSettings(aura::Window* root);
40 // const version of GetRootWindowSettings.
41 ASH_EXPORT const RootWindowSettings*
42 GetRootWindowSettings(const aura::Window* root);
44 } // namespace ash
46 #endif // ASH_ROOT_WINDOW_SETTINGS_H_