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

Unified Diff: ash/common/wm_window.h

Issue 2480713003: Window prerequisites for ShelfWindowWatcher panel support. (Closed)
Patch Set: Fix ShellSurface KAppIdKey use; remove local application_id_. Created 4 years, 1 month 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: ash/common/wm_window.h
diff --git a/ash/common/wm_window.h b/ash/common/wm_window.h
index 3871d2f01262bbedf8a3fff432a015187d2719a3..069899a30dfae88174f8943ae4a8a80447652861 100644
--- a/ash/common/wm_window.h
+++ b/ash/common/wm_window.h
@@ -14,6 +14,7 @@
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/ui_base_types.h"
#include "ui/compositor/layer_animation_element.h"
+#include "ui/gfx/image/image_skia.h"
#include "ui/wm/core/window_animations.h"
#include "ui/wm/public/window_types.h"
@@ -137,6 +138,12 @@ class ASH_EXPORT WmWindow {
virtual void SetColorProperty(WmWindowProperty key, SkColor value) = 0;
virtual int GetIntProperty(WmWindowProperty key) = 0;
virtual void SetIntProperty(WmWindowProperty key, int value) = 0;
+ virtual std::string GetStringProperty(WmWindowProperty key) = 0;
+ virtual void SetStringProperty(WmWindowProperty key,
+ const std::string& value) = 0;
+
+ virtual gfx::ImageSkia GetWindowIcon() = 0;
+ virtual gfx::ImageSkia GetAppIcon() = 0;
wm::WindowState* GetWindowState() {
return const_cast<wm::WindowState*>(
@@ -169,6 +176,9 @@ class ASH_EXPORT WmWindow {
virtual const WmWindow* GetTransientParent() const = 0;
virtual Windows GetTransientChildren() = 0;
+ // Moves this to the display where |event| occurred; returns true if moved.
+ virtual bool MoveToEventRoot(const ui::Event& event) = 0;
+
virtual void SetLayoutManager(
std::unique_ptr<WmLayoutManager> layout_manager) = 0;
virtual WmLayoutManager* GetLayoutManager() = 0;

Powered by Google App Engine
This is Rietveld 408576698