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

Side by Side Diff: third_party/WebKit/Source/web/PageOverlay.h

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 29 matching lines...) Expand all
40 40
41 class GraphicsContext; 41 class GraphicsContext;
42 class WebPageOverlay; 42 class WebPageOverlay;
43 class WebViewImpl; 43 class WebViewImpl;
44 class WebGraphicsContext; 44 class WebGraphicsContext;
45 45
46 // Manages a layer that is overlaid on a WebView's content. 46 // Manages a layer that is overlaid on a WebView's content.
47 // Clients can paint by implementing WebPageOverlay. 47 // Clients can paint by implementing WebPageOverlay.
48 // 48 //
49 // With Slimming Paint, internal clients can extract a GraphicsContext to add 49 // With Slimming Paint, internal clients can extract a GraphicsContext to add
50 // to the DisplayItemList owned by the GraphicsLayer 50 // to the PaintController owned by the GraphicsLayer
51 class PageOverlay : public GraphicsLayerClient { 51 class PageOverlay : public GraphicsLayerClient {
52 public: 52 public:
53 class Delegate : public GarbageCollectedFinalized<Delegate> { 53 class Delegate : public GarbageCollectedFinalized<Delegate> {
54 public: 54 public:
55 DEFINE_INLINE_VIRTUAL_TRACE() { } 55 DEFINE_INLINE_VIRTUAL_TRACE() { }
56 56
57 // Paints page overlay contents. 57 // Paints page overlay contents.
58 virtual void paintPageOverlay(WebGraphicsContext*, const WebSize& webVie wSize) const = 0; 58 virtual void paintPageOverlay(WebGraphicsContext*, const WebSize& webVie wSize) const = 0;
59 virtual ~Delegate() { } 59 virtual ~Delegate() { }
60 }; 60 };
(...skipping 17 matching lines...) Expand all
78 PageOverlay(WebViewImpl*, PageOverlay::Delegate*); 78 PageOverlay(WebViewImpl*, PageOverlay::Delegate*);
79 79
80 WebViewImpl* m_viewImpl; 80 WebViewImpl* m_viewImpl;
81 Persistent<PageOverlay::Delegate> m_delegate; 81 Persistent<PageOverlay::Delegate> m_delegate;
82 OwnPtr<GraphicsLayer> m_layer; 82 OwnPtr<GraphicsLayer> m_layer;
83 }; 83 };
84 84
85 } // namespace blink 85 } // namespace blink
86 86
87 #endif // PageOverlay_h 87 #endif // PageOverlay_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp ('k') | third_party/WebKit/Source/web/PageOverlayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698