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

Unified Diff: components/framelet/common/framelet.mojom

Issue 1602663003: Framelet Prototype 2016 using Mojo IPC Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Disabled oilpan Created 4 years, 11 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
« no previous file with comments | « components/framelet/common/DEPS ('k') | components/framelet/common/framelet_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/framelet/common/framelet.mojom
diff --git a/components/framelet/common/framelet.mojom b/components/framelet/common/framelet.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..b1339772c8bc936414370e55c5db44aa23a4b95d
--- /dev/null
+++ b/components/framelet/common/framelet.mojom
@@ -0,0 +1,86 @@
+// 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.
+
+module framelet.mojom;
+
+import "components/mus/public/interfaces/input_events.mojom";
+import "components/mus/public/interfaces/surface_id.mojom";
+import "ui/mojo/geometry/geometry.mojom";
+
+enum ResourceUsageLevel {
+ LOW = 0,
+ MEDIUM,
+ HIGH,
+ CRITICAL,
+ MAX_VALUE
+};
+
+enum FocusType {
+ NONE,
+ FORWARD,
+ BACKWARD,
+ UP,
+ DOWN,
+ LEFT,
+ RIGHT,
+ MOUSE,
+ PAGE,
+ LAST
+};
+
+struct SurfaceId {
+ uint32 local;
+ uint32 id_namespace;
+};
+
+enum ValueType {
+ BOOLEAN,
+ INTEGER,
+ STRING
+};
+
+struct StringValue {
+ string value;
+};
+
+struct IntegerValue {
+ uint32 value;
+};
+
+struct BooleanValue {
+ bool value;
+};
+
+struct Value {
+ ValueType type;
+ BooleanValue? boolean_value;
+ IntegerValue? integer_value;
+ StringValue? string_value;
+};
+
+interface Framelet {
+ Attach(FrameletClient client, map<string, Value> params);
+
+ Destroy();
+
+ ForwardInput(array<uint8> event);
+
+ Resize(mojo.Size new_size);
+
+ SetFocus(bool focused, FocusType focus_type);
+
+ SetVisible(bool visible);
+};
+
+interface FrameletClient {
+ ReportMemoryUsage(ResourceUsageLevel usage_level);
+
+ SetChildFrameSurface(mus.mojom.SurfaceId surface_id,
+ mojo.Size frame_size,
+ float scale_factor);
+};
+
+interface FrameletFactory {
+ Create(Framelet& framelet, map<string, Value> params);
+};
« no previous file with comments | « components/framelet/common/DEPS ('k') | components/framelet/common/framelet_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698