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

Unified Diff: components/exo/shell_surface.h

Issue 1491843002: exo: Add ShellSurface::SetApplicationId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index 7a2c189af26bc3fa9a48c824b911f1ee57b04b05..1c2bad322a0dd2525fde81414e18d586ea45f3e6 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -46,6 +46,15 @@ class ShellSurface : public SurfaceDelegate,
// Set title for surface.
void SetTitle(const base::string16& title);
+ // Sets the application ID for the window. The application ID identifies the
+ // general class of applications to which the window belongs.
+ static void SetApplicationId(aura::Window* window,
+ std::string* application_id);
+ static const std::string GetApplicationId(aura::Window* window);
+
+ // Set application id for surface.
+ void SetApplicationId(const std::string& application_id);
+
// Start an interactive move of surface.
void Move();
@@ -74,6 +83,7 @@ class ShellSurface : public SurfaceDelegate,
scoped_ptr<views::Widget> widget_;
Surface* surface_;
base::string16 title_;
+ std::string application_id_;
DISALLOW_COPY_AND_ASSIGN(ShellSurface);
};
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698