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

Side by Side Diff: ui/display/win/screen_win_display.h

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 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 unified diff | Download patch
« no previous file with comments | « ui/display/win/screen_win.cc ('k') | ui/display/win/screen_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef UI_DISPLAY_WIN_SCREEN_WIN_DISPLAY_H_ 5 #ifndef UI_DISPLAY_WIN_SCREEN_WIN_DISPLAY_H_
6 #define UI_DISPLAY_WIN_SCREEN_WIN_DISPLAY_H_ 6 #define UI_DISPLAY_WIN_SCREEN_WIN_DISPLAY_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "ui/display/display.h" 10 #include "ui/display/display.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 12
13 namespace display { 13 namespace display {
14 namespace win { 14 namespace win {
15 15
16 class DisplayInfo; 16 class DisplayInfo;
17 17
18 // A display used by display::ScreenWin. 18 // A display used by ScreenWin.
19 // It holds a display and additional parameters used for DPI calculations. 19 // It holds a display and additional parameters used for DPI calculations.
20 class ScreenWinDisplay final { 20 class ScreenWinDisplay final {
21 public: 21 public:
22 ScreenWinDisplay(); 22 ScreenWinDisplay();
23 explicit ScreenWinDisplay(const DisplayInfo& display_info); 23 explicit ScreenWinDisplay(const DisplayInfo& display_info);
24 ScreenWinDisplay(const Display& display, 24 ScreenWinDisplay(const Display& display,
25 const DisplayInfo& display_info); 25 const DisplayInfo& display_info);
26 26
27 const Display& display() const { return display_; } 27 const Display& display() const { return display_; }
28 const gfx::Rect& pixel_bounds() const { return pixel_bounds_; } 28 const gfx::Rect& pixel_bounds() const { return pixel_bounds_; }
29 29
30 private: 30 private:
31 Display display_; 31 Display display_;
32 gfx::Rect pixel_bounds_; 32 gfx::Rect pixel_bounds_;
33 }; 33 };
34 34
35 } // namespace win 35 } // namespace win
36 } // namespace display 36 } // namespace display
37 37
38 #endif // UI_DISPLAY_WIN_SCREEN_WIN_DISPLAY_H_ 38 #endif // UI_DISPLAY_WIN_SCREEN_WIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « ui/display/win/screen_win.cc ('k') | ui/display/win/screen_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698