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

Unified Diff: mash/wm/non_client_frame_controller.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase 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 | « mash/wm/frame/move_loop.cc ('k') | mash/wm/property_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/non_client_frame_controller.cc
diff --git a/mash/wm/non_client_frame_controller.cc b/mash/wm/non_client_frame_controller.cc
index 1db0627e3496344d43cf37f1835c0dfe8dffb6ec..9857676c71d124b410a3ff9b2426e5554f35e31b 100644
--- a/mash/wm/non_client_frame_controller.cc
+++ b/mash/wm/non_client_frame_controller.cc
@@ -93,7 +93,7 @@ class WmNativeWidgetMus : public views::NativeWidgetMus {
: NativeWidgetMus(delegate,
shell,
window,
- mus::mojom::SURFACE_TYPE_UNDERLAY) {}
+ mus::mojom::SurfaceType::UNDERLAY) {}
~WmNativeWidgetMus() override {
}
@@ -221,20 +221,20 @@ views::View* NonClientFrameController::GetContentsView() {
bool NonClientFrameController::CanResize() const {
return window_ &&
- (GetResizeBehavior(window_) &
- mus::mojom::RESIZE_BEHAVIOR_CAN_RESIZE) != 0;
+ (GetResizeBehavior(window_) & mus::mojom::kResizeBehaviorCanResize) !=
+ 0;
}
bool NonClientFrameController::CanMaximize() const {
return window_ &&
(GetResizeBehavior(window_) &
- mus::mojom::RESIZE_BEHAVIOR_CAN_MAXIMIZE) != 0;
+ mus::mojom::kResizeBehaviorCanMaximize) != 0;
}
bool NonClientFrameController::CanMinimize() const {
return window_ &&
(GetResizeBehavior(window_) &
- mus::mojom::RESIZE_BEHAVIOR_CAN_MINIMIZE) != 0;
+ mus::mojom::kResizeBehaviorCanMinimize) != 0;
}
views::ClientView* NonClientFrameController::CreateClientView(
« no previous file with comments | « mash/wm/frame/move_loop.cc ('k') | mash/wm/property_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698