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

Unified Diff: components/mus/public/cpp/window.h

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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/mus/public/cpp/tests/window_unittest.cc ('k') | components/mus/public/cpp/window_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/window.h
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h
index db3be8fc65973852a4f73627f168a3373ed15a91..5d366110ea2935b4a3ad4ca25694d1a711f96653 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -13,7 +13,7 @@
#include "components/mus/public/cpp/types.h"
#include "components/mus/public/interfaces/mus_constants.mojom.h"
#include "components/mus/public/interfaces/surface_id.mojom.h"
-#include "components/mus/public/interfaces/view_tree.mojom.h"
+#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "mojo/application/public/interfaces/service_provider.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/array.h"
#include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
@@ -66,7 +66,9 @@ class Window {
bool visible() const { return visible_; }
void SetVisible(bool value);
- const mojo::ViewportMetrics& viewport_metrics() { return *viewport_metrics_; }
+ const mojom::ViewportMetrics& viewport_metrics() {
+ return *viewport_metrics_;
+ }
scoped_ptr<WindowSurface> RequestSurface();
@@ -124,7 +126,7 @@ class Window {
void AddChild(Window* child);
void RemoveChild(Window* child);
- void Reorder(Window* relative, mojo::OrderDirection direction);
+ void Reorder(Window* relative, mojom::OrderDirection direction);
void MoveToFront();
void MoveToBack();
@@ -139,12 +141,12 @@ class Window {
void SetFocus();
bool HasFocus() const;
- // Embedding. See view_tree.mojom for details.
- void Embed(mojo::ViewTreeClientPtr client);
+ // Embedding. See window_tree.mojom for details.
+ void Embed(mus::mojom::WindowTreeClientPtr client);
// NOTE: callback is run synchronously if Embed() is not allowed on this
// Window.
- void Embed(mojo::ViewTreeClientPtr client,
+ void Embed(mus::mojom::WindowTreeClientPtr client,
uint32_t policy_bitmask,
const EmbedCallback& callback);
@@ -172,12 +174,12 @@ class Window {
void LocalAddChild(Window* child);
void LocalRemoveChild(Window* child);
// Returns true if the order actually changed.
- bool LocalReorder(Window* relative, mojo::OrderDirection direction);
+ bool LocalReorder(Window* relative, mojom::OrderDirection direction);
void LocalSetBounds(const mojo::Rect& old_bounds,
const mojo::Rect& new_bounds);
void LocalSetClientArea(const mojo::Rect& new_client_area);
- void LocalSetViewportMetrics(const mojo::ViewportMetrics& old_metrics,
- const mojo::ViewportMetrics& new_metrics);
+ void LocalSetViewportMetrics(const mojom::ViewportMetrics& old_metrics,
+ const mojom::ViewportMetrics& new_metrics);
void LocalSetDrawn(bool drawn);
void LocalSetVisible(bool visible);
@@ -207,7 +209,7 @@ class Window {
mojo::Rect bounds_;
mojo::Rect client_area_;
- mojo::ViewportMetricsPtr viewport_metrics_;
+ mojom::ViewportMetricsPtr viewport_metrics_;
bool visible_;
« no previous file with comments | « components/mus/public/cpp/tests/window_unittest.cc ('k') | components/mus/public/cpp/window_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698