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

Unified Diff: ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc

Issue 192483007: Move chromeos/display/* to ui/display/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include display.gyp into ChromeOS builds only Created 6 years, 9 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: ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
diff --git a/chromeos/display/native_display_event_dispatcher_x11.cc b/ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
similarity index 87%
rename from chromeos/display/native_display_event_dispatcher_x11.cc
rename to ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
index 01e91bcb0980258e18b26a86e829929b012ff746..3c305a043cdb25ad5b1129589827d73db07906de 100644
--- a/chromeos/display/native_display_event_dispatcher_x11.cc
+++ b/ui/display/chromeos/x11/native_display_event_dispatcher_x11.cc
@@ -2,16 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromeos/display/native_display_event_dispatcher_x11.h"
+#include "ui/display/chromeos/x11/native_display_event_dispatcher_x11.h"
#include <X11/extensions/Xrandr.h>
-namespace chromeos {
+namespace ui {
NativeDisplayEventDispatcherX11::NativeDisplayEventDispatcherX11(
- NativeDisplayDelegateX11::HelperDelegate* delegate, int xrandr_event_base)
- : delegate_(delegate),
- xrandr_event_base_(xrandr_event_base) {}
+ NativeDisplayDelegateX11::HelperDelegate* delegate,
+ int xrandr_event_base)
+ : delegate_(delegate), xrandr_event_base_(xrandr_event_base) {}
NativeDisplayEventDispatcherX11::~NativeDisplayEventDispatcherX11() {}
@@ -46,9 +46,10 @@ uint32_t NativeDisplayEventDispatcherX11::Dispatch(
bool found_changed_output = false;
const std::vector<OutputConfigurator::OutputSnapshot>& cached_outputs =
delegate_->GetCachedOutputs();
- for (std::vector<OutputConfigurator::OutputSnapshot>::const_iterator
- it = cached_outputs.begin();
- it != cached_outputs.end(); ++it) {
+ for (std::vector<OutputConfigurator::OutputSnapshot>::const_iterator it =
+ cached_outputs.begin();
+ it != cached_outputs.end();
+ ++it) {
if (it->output == output_change_event->output) {
if (connected && it->crtc == output_change_event->crtc &&
it->current_mode == output_change_event->mode) {
@@ -70,4 +71,4 @@ uint32_t NativeDisplayEventDispatcherX11::Dispatch(
return POST_DISPATCH_PERFORM_DEFAULT;
}
-} // namespace chromeos
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698