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

Side by Side Diff: ui/ozone/common/display_util.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 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 | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/common/display_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_COMMON_DISPLAY_UTIL_H_
6 #define UI_OZONE_COMMON_DISPLAY_UTIL_H_
7
8 #include <vector>
9
10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
11
12 namespace base {
13 class FilePath;
14 }
15
16 namespace ui {
17
18 class DisplayMode;
19 class DisplaySnapshot;
20
21 // Conforms to the std::UnaryPredicate interface such that it can be used to
22 // find a display with |display_id| in std:: containers (ie: std::vector).
23 class FindDisplayById {
24 public:
25 explicit FindDisplayById(int64_t display_id);
26
27 bool operator()(const DisplaySnapshot_Params& display) const;
28
29 private:
30 int64_t display_id_;
31 };
32
33 DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode);
34 DisplaySnapshot_Params GetDisplaySnapshotParams(const DisplaySnapshot& display);
35
36 // Create a display using the Ozone command line parameters.
37 // Return false if the command line flags are not specified.
38 bool CreateSnapshotFromCommandLine(DisplaySnapshot_Params* snapshot_out);
39
40 } // namespace ui
41
42 #endif // UI_OZONE_COMMON_DISPLAY_UTIL_H_
OLDNEW
« no previous file with comments | « ui/ozone/common/display_snapshot_proxy.cc ('k') | ui/ozone/common/display_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698