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

Unified Diff: sky/shell/ui_delegate.h

Issue 880443003: Plumb resize notifications around sky/shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: git cl format Created 5 years, 10 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: sky/shell/ui_delegate.h
diff --git a/sky/shell/ui_delegate.h b/sky/shell/ui_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..bb7e44b8c149999c60a8b06e19ac7fcff028496d
--- /dev/null
+++ b/sky/shell/ui_delegate.h
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKY_SHELL_UI_DELEGATE_H_
+#define SKY_SHELL_UI_DELEGATE_H_
+
+#include "ui/gfx/geometry/size.h"
+
+namespace sky {
+namespace shell {
+
+class UIDelegate {
+ public:
+ virtual void OnViewportMetricsChanged(const gfx::Size& size,
+ float device_pixel_ratio) = 0;
+
+ protected:
+ virtual ~UIDelegate();
+};
+
+} // namespace shell
+} // namespace sky
+
+#endif // SKY_SHELL_UI_DELEGATE_H_
« sky/shell/sky_view.cc ('K') | « sky/shell/ui/engine.cc ('k') | sky/shell/ui_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698