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

Side by Side Diff: components/exo/wayland/server.cc

Issue 2203393002: Resolve conflict in exo/wayland/server.cc in m53 branch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Resolve conflict Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/exo/wayland/server.h" 5 #include "components/exo/wayland/server.h"
6 6
7 #include <grp.h> 7 #include <grp.h>
8 #include <linux/input.h> 8 #include <linux/input.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 1607
1608 if (changed_metrics & 1608 if (changed_metrics &
1609 (DISPLAY_METRIC_BOUNDS | DISPLAY_METRIC_DEVICE_SCALE_FACTOR | 1609 (DISPLAY_METRIC_BOUNDS | DISPLAY_METRIC_DEVICE_SCALE_FACTOR |
1610 DISPLAY_METRIC_ROTATION | DISPLAY_METRIC_WORK_AREA)) { 1610 DISPLAY_METRIC_ROTATION | DISPLAY_METRIC_WORK_AREA)) {
1611 SendDisplayMetrics(display); 1611 SendDisplayMetrics(display);
1612 } 1612 }
1613 SendConfigure_DEPRECATED(display); 1613 SendConfigure_DEPRECATED(display);
1614 } 1614 }
1615 1615
1616 // Overridden from ash::ShellObserver: 1616 // Overridden from ash::ShellObserver:
1617 void OnDisplayWorkAreaInsetsChanged() override { SendConfigure(); } 1617 void OnDisplayWorkAreaInsetsChanged() override {
1618 const display::Display& primary =
1619 ash::Shell::GetInstance()->display_manager()->GetDisplayForId(
1620 display_id_);
1621 SendConfigure_DEPRECATED(primary);
1622 }
1618 void OnMaximizeModeStarted() override { 1623 void OnMaximizeModeStarted() override {
1619 layout_mode_ = ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET; 1624 layout_mode_ = ZWP_REMOTE_SHELL_V1_LAYOUT_MODE_TABLET;
1620 SendLayoutModeChange_DEPRECATED(); 1625 SendLayoutModeChange_DEPRECATED();
1621 1626
1622 send_configure_after_layout_change_ = true; 1627 send_configure_after_layout_change_ = true;
1623 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( 1628 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
1624 FROM_HERE, base::Bind(&WaylandRemoteShell::MaybeSendConfigure, 1629 FROM_HERE, base::Bind(&WaylandRemoteShell::MaybeSendConfigure,
1625 weak_ptr_factory_.GetWeakPtr()), 1630 weak_ptr_factory_.GetWeakPtr()),
1626 base::TimeDelta::FromMilliseconds(kConfigureDelayAfterLayoutSwitchMs)); 1631 base::TimeDelta::FromMilliseconds(kConfigureDelayAfterLayoutSwitchMs));
1627 } 1632 }
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 DCHECK(event_loop); 3051 DCHECK(event_loop);
3047 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds()); 3052 wl_event_loop_dispatch(event_loop, timeout.InMilliseconds());
3048 } 3053 }
3049 3054
3050 void Server::Flush() { 3055 void Server::Flush() {
3051 wl_display_flush_clients(wl_display_.get()); 3056 wl_display_flush_clients(wl_display_.get());
3052 } 3057 }
3053 3058
3054 } // namespace wayland 3059 } // namespace wayland
3055 } // namespace exo 3060 } // namespace exo
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698