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

Unified Diff: athena/screen/public/screen_manager.h

Issue 404563002: Athena's FocusRules (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: athena/screen/public/screen_manager.h
diff --git a/athena/screen/public/screen_manager.h b/athena/screen/public/screen_manager.h
index c2914fe88f9f6443a99643a7ee4d139d0757a03c..a65976d8de792d9b1fb5efc59d351f41fe368858 100644
--- a/athena/screen/public/screen_manager.h
+++ b/athena/screen/public/screen_manager.h
@@ -17,6 +17,10 @@ namespace gfx {
class ImageSkia;
}
+namespace wm {
+class FocusRules;
+}
+
namespace athena {
// Mananges basic UI components on the screen such as background, and provide
@@ -24,6 +28,14 @@ namespace athena {
// create and manage their windows on the screen.
class ATHENA_EXPORT ScreenManager {
public:
+ struct ContainerParams {
James Cook 2014/07/18 02:39:51 I like how you use this params struct for initiali
+ ContainerParams(const std::string& name);
+ std::string name;
+
+ // True if the container can activate its child window.
+ bool can_activate_children;
+ };
+
// Creates, returns and deletes the singleton object of the ScreenManager
// implementation.
static ScreenManager* Create(aura::Window* root);
@@ -34,16 +46,21 @@ class ATHENA_EXPORT ScreenManager {
// Creates the container window that is used when creating a normal
// widget without specific parent.
- virtual aura::Window* CreateDefaultContainer(const std::string& name) = 0;
+ virtual aura::Window* CreateDefaultContainer(
+ const ContainerParams& params) = 0;
// Creates the container window on the screen.
- virtual aura::Window* CreateContainer(const std::string& name) = 0;
+ virtual aura::Window* CreateContainer(const ContainerParams& params) = 0;
// Return the context object to be used for widget creation.
virtual aura::Window* GetContext() = 0;
// Sets the background image.
virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
+
+ // Create a focus rules.
+ // TODO(osima): Make this virtual function.
James Cook 2014/07/18 02:39:51 nit: osima -> oshima :-)
oshima 2014/07/18 04:03:52 Done.
+ static wm::FocusRules* CreateFocusRules();
oshima 2014/07/17 21:31:05 I need to refactor initialization process to make
James Cook 2014/07/18 02:39:51 Acknowledged.
};
} // namespace athena

Powered by Google App Engine
This is Rietveld 408576698