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

Side by Side Diff: remoting/host/desktop_resizer_win.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « remoting/host/desktop_resizer_ozone.cc ('k') | remoting/host/desktop_resizer_x11.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "remoting/host/desktop_resizer.h" 5 #include "remoting/host/desktop_resizer.h"
6 6
7 #include <windows.h>
7 #include <map> 8 #include <map>
8 #include <windows.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h"
11 12
12 namespace { 13 namespace {
13 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405. 14 // TODO(jamiewalch): Use the correct DPI for the mode: http://crbug.com/172405.
14 const int kDefaultDPI = 96; 15 const int kDefaultDPI = 96;
15 } // namespace 16 } // namespace
16 17
17 namespace remoting { 18 namespace remoting {
18 19
19 // Provide comparison operation for ScreenResolution so we can use it in 20 // Provide comparison operation for ScreenResolution so we can use it in
20 // std::map. 21 // std::map.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return ScreenResolution( 183 return ScreenResolution(
183 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight), 184 webrtc::DesktopSize(mode.dmPelsWidth, mode.dmPelsHeight),
184 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI)); 185 webrtc::DesktopVector(kDefaultDPI, kDefaultDPI));
185 } 186 }
186 187
187 scoped_ptr<DesktopResizer> DesktopResizer::Create() { 188 scoped_ptr<DesktopResizer> DesktopResizer::Create() {
188 return make_scoped_ptr(new DesktopResizerWin); 189 return make_scoped_ptr(new DesktopResizerWin);
189 } 190 }
190 191
191 } // namespace remoting 192 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_resizer_ozone.cc ('k') | remoting/host/desktop_resizer_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698