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

Unified Diff: mojo/services/native_viewport/native_viewport_service.cc

Issue 374723002: Mojo: Trivial style fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: mojo/services/native_viewport/native_viewport_service.cc
diff --git a/mojo/services/native_viewport/native_viewport_service.cc b/mojo/services/native_viewport/native_viewport_service.cc
index 9b63c487b31873366d429577dad44d7a307b3d63..1db489b8375382e7f202a9674425047aa89350f3 100644
--- a/mojo/services/native_viewport/native_viewport_service.cc
+++ b/mojo/services/native_viewport/native_viewport_service.cc
@@ -27,7 +27,7 @@ bool IsRateLimitedEventType(ui::Event* event) {
event->type() == ui::ET_TOUCH_MOVED;
}
-}
+} // namespace
class NativeViewportImpl
: public InterfaceImpl<mojo::NativeViewport>,
@@ -102,16 +102,16 @@ class NativeViewportImpl
virtual bool OnEvent(ui::Event* ui_event) OVERRIDE {
// Must not return early before updating capture.
switch (ui_event->type()) {
- case ui::ET_MOUSE_PRESSED:
- case ui::ET_TOUCH_PRESSED:
- native_viewport_->SetCapture();
- break;
- case ui::ET_MOUSE_RELEASED:
- case ui::ET_TOUCH_RELEASED:
- native_viewport_->ReleaseCapture();
- break;
- default:
- break;
+ case ui::ET_MOUSE_PRESSED:
+ case ui::ET_TOUCH_PRESSED:
+ native_viewport_->SetCapture();
+ break;
+ case ui::ET_MOUSE_RELEASED:
+ case ui::ET_TOUCH_RELEASED:
+ native_viewport_->ReleaseCapture();
+ break;
+ default:
+ break;
}
if (waiting_for_event_ack_ && IsRateLimitedEventType(ui_event))
@@ -167,11 +167,9 @@ class NVSDelegate : public ApplicationDelegate {
mojo::shell::Context* context_;
};
-
} // namespace services
} // namespace mojo
-
MOJO_NATIVE_VIEWPORT_EXPORT mojo::ApplicationImpl*
CreateNativeViewportService(
mojo::shell::Context* context,
« no previous file with comments | « mojo/service_manager/background_service_loader.cc ('k') | mojo/services/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698