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

Side by Side Diff: athena/screen/public/screen_manager.h

Issue 414903002: Introduce 'grab_inputs' property for athena container. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « athena/home/home_card_impl.cc ('k') | athena/screen/screen_manager_impl.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 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 ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "athena/athena_export.h" 10 #include "athena/athena_export.h"
(...skipping 17 matching lines...) Expand all
28 // create and manage their windows on the screen. 28 // create and manage their windows on the screen.
29 class ATHENA_EXPORT ScreenManager { 29 class ATHENA_EXPORT ScreenManager {
30 public: 30 public:
31 struct ContainerParams { 31 struct ContainerParams {
32 ContainerParams(const std::string& name, int z_order_priority); 32 ContainerParams(const std::string& name, int z_order_priority);
33 std::string name; 33 std::string name;
34 34
35 // True if the container can activate its child window. 35 // True if the container can activate its child window.
36 bool can_activate_children; 36 bool can_activate_children;
37 37
38 // True if the container will grab all of input events.
39 bool grab_inputs;
40
38 // Defines the z_order priority of the container. 41 // Defines the z_order priority of the container.
39 int z_order_priority; 42 int z_order_priority;
40 }; 43 };
41 44
42 // Creates, returns and deletes the singleton object of the ScreenManager 45 // Creates, returns and deletes the singleton object of the ScreenManager
43 // implementation. 46 // implementation.
44 static ScreenManager* Create(aura::Window* root); 47 static ScreenManager* Create(aura::Window* root);
45 static ScreenManager* Get(); 48 static ScreenManager* Get();
46 static void Shutdown(); 49 static void Shutdown();
47 50
(...skipping 14 matching lines...) Expand all
62 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; 65 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
63 66
64 // Create a focus rules. 67 // Create a focus rules.
65 // TODO(oshima): Make this virtual function. 68 // TODO(oshima): Make this virtual function.
66 static wm::FocusRules* CreateFocusRules(); 69 static wm::FocusRules* CreateFocusRules();
67 }; 70 };
68 71
69 } // namespace athena 72 } // namespace athena
70 73
71 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 74 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/home/home_card_impl.cc ('k') | athena/screen/screen_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698