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

Side by Side Diff: third_party/WebKit/Source/web/PageWidgetDelegate.cpp

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 float scaleFactor = page.deviceScaleFactor(); 76 float scaleFactor = page.deviceScaleFactor();
77 paintContext.setDeviceScaleFactor(scaleFactor); 77 paintContext.setDeviceScaleFactor(scaleFactor);
78 78
79 AffineTransform scale; 79 AffineTransform scale;
80 scale.scale(scaleFactor); 80 scale.scale(scaleFactor);
81 TransformRecorder scaleRecorder(paintContext, pictureBuilder, scale); 81 TransformRecorder scaleRecorder(paintContext, pictureBuilder, scale);
82 82
83 IntRect dirtyRect(rect); 83 IntRect dirtyRect(rect);
84 FrameView* view = root.view(); 84 FrameView* view = root.view();
85 if (view) { 85 if (view) {
86 ClipRecorder clipRecorder(paintContext, pictureBuilder, DisplayItem: :PageWidgetDelegateClip, dirtyRect); 86 ClipRecorder clipRecorder(paintContext, pictureBuilder, DisplayItem: :kPageWidgetDelegateClip, dirtyRect);
87 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); 87 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect));
88 } else { 88 } else {
89 DrawingRecorder drawingRecorder(paintContext, pictureBuilder, Displa yItem::PageWidgetDelegateBackgroundFallback, dirtyRect); 89 DrawingRecorder drawingRecorder(paintContext, pictureBuilder, Displa yItem::kPageWidgetDelegateBackgroundFallback, dirtyRect);
90 paintContext.fillRect(dirtyRect, Color::white); 90 paintContext.fillRect(dirtyRect, Color::white);
91 } 91 }
92 } 92 }
93 pictureBuilder.endRecording()->playback(canvas); 93 pictureBuilder.endRecording()->playback(canvas);
94 } 94 }
95 95
96 void PageWidgetDelegate::paint(Page& page, WebCanvas* canvas, 96 void PageWidgetDelegate::paint(Page& page, WebCanvas* canvas,
97 const WebRect& rect, LocalFrame& root) 97 const WebRect& rect, LocalFrame& root)
98 { 98 {
99 paintInternal(page, canvas, rect, root, GlobalPaintNormalPhase); 99 paintInternal(page, canvas, rect, root, GlobalPaintNormalPhase);
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 { 225 {
226 return mainFrame.eventHandler().handleWheelEvent(PlatformWheelEventBuilder(m ainFrame.view(), event)); 226 return mainFrame.eventHandler().handleWheelEvent(PlatformWheelEventBuilder(m ainFrame.view(), event));
227 } 227 }
228 228
229 WebInputEventResult PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFra me, const WebTouchEvent& event) 229 WebInputEventResult PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFra me, const WebTouchEvent& event)
230 { 230 {
231 return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(m ainFrame.view(), event)); 231 return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(m ainFrame.view(), event));
232 } 232 }
233 233
234 } // namespace blink 234 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PageOverlayTest.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698