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

Unified Diff: ui/views/win/hwnd_message_handler.cc

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« ui/views/controls/menu/native_menu_win.cc ('K') | « ui/views/drag_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.cc
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
index ba8f4465c1e4b3b5499d5465359338530b31951a..253eb2254bdef26926cebc5d4a4ffe98913d721f 100644
--- a/ui/views/win/hwnd_message_handler.cc
+++ b/ui/views/win/hwnd_message_handler.cc
@@ -15,6 +15,7 @@
#include "ui/base/events/event_utils.h"
#include "ui/base/gestures/gesture_sequence.h"
#include "ui/base/keycodes/keyboard_code_conversion_win.h"
+#include "ui/base/layout.h"
#include "ui/base/touch/touch_enabled.h"
#include "ui/base/win/mouse_wheel_util.h"
#include "ui/base/win/shell.h"
@@ -1037,10 +1038,8 @@ void HWNDMessageHandler::ClientAreaSizeChanged() {
gfx::Size s(std::max(0, static_cast<int>(r.right - r.left)),
std::max(0, static_cast<int>(r.bottom - r.top)));
delegate_->HandleClientSizeChanged(s);
- if (use_layered_buffer_) {
- layered_window_contents_.reset(
- new gfx::Canvas(s, ui::SCALE_FACTOR_100P, false));
- }
+ if (use_layered_buffer_)
+ layered_window_contents_.reset(new gfx::Canvas(s, 1.0f, false));
}
bool HWNDMessageHandler::GetClientAreaInsets(gfx::Insets* insets) const {
« ui/views/controls/menu/native_menu_win.cc ('K') | « ui/views/drag_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698