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

Side by Side Diff: chrome/browser/ui/views/tabs/native_view_photobooth_win.cc

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more two win fixes Created 8 years, 9 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 | « chrome/browser/ui/views/tabs/dragged_tab_view.cc ('k') | chrome/browser/ui/views/tabs/tab.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/views/tabs/native_view_photobooth_win.h" 5 #include "chrome/browser/ui/views/tabs/native_view_photobooth_win.h"
6 6
7 #include "third_party/skia/include/core/SkBitmap.h" 7 #include "third_party/skia/include/core/SkBitmap.h"
8 #include "ui/gfx/canvas_skia.h" 8 #include "ui/gfx/canvas.h"
9 #include "ui/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/views/widget/widget.h" 11 #include "ui/views/widget/widget.h"
12 12
13 namespace { 13 namespace {
14 14
15 static BOOL CALLBACK MonitorEnumProc(HMONITOR monitor, HDC monitor_dc, 15 static BOOL CALLBACK MonitorEnumProc(HMONITOR monitor, HDC monitor_dc,
16 RECT* monitor_rect, LPARAM data) { 16 RECT* monitor_rect, LPARAM data) {
17 gfx::Point* point = reinterpret_cast<gfx::Point*>(data); 17 gfx::Point* point = reinterpret_cast<gfx::Point*>(data);
18 if (monitor_rect->right > point->x() && monitor_rect->bottom > point->y()) { 18 if (monitor_rect->right > point->x() && monitor_rect->bottom > point->y()) {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 params.bounds = capture_bounds; 156 params.bounds = capture_bounds;
157 capture_window_->Init(params); 157 capture_window_->Init(params);
158 // If the capture window isn't visible, blitting from the TabContents' 158 // If the capture window isn't visible, blitting from the TabContents'
159 // HWND's DC to the capture bitmap produces blankness. 159 // HWND's DC to the capture bitmap produces blankness.
160 capture_window_->Show(); 160 capture_window_->Show();
161 SetLayeredWindowAttributes( 161 SetLayeredWindowAttributes(
162 capture_window_->GetNativeView(), RGB(0xFF, 0xFF, 0xFF), 0xFF, LWA_ALPHA); 162 capture_window_->GetNativeView(), RGB(0xFF, 0xFF, 0xFF), 0xFF, LWA_ALPHA);
163 163
164 Replace(initial_hwnd); 164 Replace(initial_hwnd);
165 } 165 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/dragged_tab_view.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698