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

Side by Side Diff: content/shell/browser/shell_platform_data_aura.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: rebase Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 "content/shell/browser/shell_platform_data_aura.h" 5 #include "content/shell/browser/shell_platform_data_aura.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "content/shell/browser/shell.h" 8 #include "content/shell/browser/shell.h"
9 #include "ui/aura/client/default_capture_client.h" 9 #include "ui/aura/client/default_capture_client.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 ShellPlatformDataAura::~ShellPlatformDataAura() { 78 ShellPlatformDataAura::~ShellPlatformDataAura() {
79 } 79 }
80 80
81 void ShellPlatformDataAura::ShowWindow() { 81 void ShellPlatformDataAura::ShowWindow() {
82 host_->Show(); 82 host_->Show();
83 } 83 }
84 84
85 void ShellPlatformDataAura::ResizeWindow(const gfx::Size& size) { 85 void ShellPlatformDataAura::ResizeWindow(const gfx::Size& size) {
86 host_->SetBounds(gfx::Rect(size)); 86 host_->SetBoundsInPixels(gfx::Rect(size));
87 } 87 }
88 88
89 } // namespace content 89 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698