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

Side by Side Diff: ui/aura/root_window_host_win.cc

Issue 11273059: ash: Clean up system background layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 8 years, 1 month 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 | « ui/aura/root_window_host_win.h ('k') | ui/views/widget/desktop_root_window_host_linux.h » ('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 "ui/aura/root_window_host_win.h" 5 #include "ui/aura/root_window_host_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return (pt.x >= 0 && static_cast<int>(pt.x) < size.width() && 171 return (pt.x >= 0 && static_cast<int>(pt.x) < size.width() &&
172 pt.y >= 0 && static_cast<int>(pt.y) < size.height()); 172 pt.y >= 0 && static_cast<int>(pt.y) < size.height());
173 } 173 }
174 174
175 bool RootWindowHostWin::ConfineCursorToRootWindow() { 175 bool RootWindowHostWin::ConfineCursorToRootWindow() {
176 RECT window_rect; 176 RECT window_rect;
177 GetWindowRect(hwnd(), &window_rect); 177 GetWindowRect(hwnd(), &window_rect);
178 return ClipCursor(&window_rect) != 0; 178 return ClipCursor(&window_rect) != 0;
179 } 179 }
180 180
181 bool RootWindowHostWin::CopyAreaToSkCanvas(const gfx::Rect& source_bounds,
182 const gfx::Point& dest_offset,
183 SkCanvas* canvas) {
184 NOTIMPLEMENTED();
185 return false;
186 }
187
181 bool RootWindowHostWin::GrabSnapshot( 188 bool RootWindowHostWin::GrabSnapshot(
182 const gfx::Rect& snapshot_bounds, 189 const gfx::Rect& snapshot_bounds,
183 std::vector<unsigned char>* png_representation) { 190 std::vector<unsigned char>* png_representation) {
184 NOTIMPLEMENTED(); 191 NOTIMPLEMENTED();
185 return false; 192 return false;
186 } 193 }
187 194
188 void RootWindowHostWin::UnConfineCursor() { 195 void RootWindowHostWin::UnConfineCursor() {
189 ClipCursor(NULL); 196 ClipCursor(NULL);
190 } 197 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 } 263 }
257 264
258 void RootWindowHostWin::OnSize(UINT param, const CSize& size) { 265 void RootWindowHostWin::OnSize(UINT param, const CSize& size) {
259 // Minimizing resizes the window to 0x0 which causes our layout to go all 266 // Minimizing resizes the window to 0x0 which causes our layout to go all
260 // screwy, so we just ignore it. 267 // screwy, so we just ignore it.
261 if (param != SIZE_MINIMIZED) 268 if (param != SIZE_MINIMIZED)
262 delegate_->OnHostResized(gfx::Size(size.cx, size.cy)); 269 delegate_->OnHostResized(gfx::Size(size.cx, size.cy));
263 } 270 }
264 271
265 } // namespace aura 272 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window_host_win.h ('k') | ui/views/widget/desktop_root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698