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

Side by Side Diff: win8/metro_driver/chrome_app_view_ash.h

Issue 300003002: Use the win32 device scale factor in Chrome ASH on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Presubmit warnings Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | win8/metro_driver/chrome_app_view_ash.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 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 5 #ifndef WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 6 #define WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
7 7
8 #include <windows.applicationmodel.core.h> 8 #include <windows.applicationmodel.core.h>
9 #include <windows.ui.core.h> 9 #include <windows.ui.core.h>
10 #include <windows.ui.input.h> 10 #include <windows.ui.input.h>
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // The actual window behind the view surface. 226 // The actual window behind the view surface.
227 HWND core_window_hwnd_; 227 HWND core_window_hwnd_;
228 228
229 // UI message loop to allow message passing into this thread. 229 // UI message loop to allow message passing into this thread.
230 base::MessageLoopForUI ui_loop_; 230 base::MessageLoopForUI ui_loop_;
231 231
232 // For IME support. 232 // For IME support.
233 scoped_ptr<metro_driver::InputSource> input_source_; 233 scoped_ptr<metro_driver::InputSource> input_source_;
234 scoped_ptr<metro_driver::TextService> text_service_; 234 scoped_ptr<metro_driver::TextService> text_service_;
235 235
236 // The device scale factor. 236 // The metro device scale factor as reported by the winrt interfaces.
237 float scale_; 237 float metro_dpi_scale_;
238 // The win32 dpi scale which is queried via GetDeviceCaps. Please refer to
239 // ui/gfx/win/dpi.cc for more information.
240 float win32_dpi_scale_;
238 }; 241 };
239 242
240 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_ 243 #endif // WIN8_METRO_DRIVER_CHROME_APP_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | win8/metro_driver/chrome_app_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698