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

Side by Side Diff: Source/web/WebPopupMenuImpl.h

Issue 554183004: Add an alternate paintContents method to WebContentLayerClient. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: opaquerecttracking: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/LinkHighlight.cpp ('k') | Source/web/WebPopupMenuImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE FINAL; 80 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE FINAL;
81 virtual bool confirmComposition(const WebString& text) OVERRIDE FINAL; 81 virtual bool confirmComposition(const WebString& text) OVERRIDE FINAL;
82 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE FIN AL; 82 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE FIN AL;
83 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E FINAL; 83 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E FINAL;
84 virtual void setTextDirection(WebTextDirection) OVERRIDE FINAL; 84 virtual void setTextDirection(WebTextDirection) OVERRIDE FINAL;
85 virtual bool isAcceleratedCompositingActive() const OVERRIDE FINAL { return false; } 85 virtual bool isAcceleratedCompositingActive() const OVERRIDE FINAL { return false; }
86 virtual bool isPopupMenu() const OVERRIDE FINAL { return true; } 86 virtual bool isPopupMenu() const OVERRIDE FINAL { return true; }
87 virtual void willCloseLayerTreeView() OVERRIDE FINAL; 87 virtual void willCloseLayerTreeView() OVERRIDE FINAL;
88 88
89 // WebContentLayerClient 89 // WebContentLayerClient
90 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebFloatRect& opaque, 90 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebFloatRect& opaque, WebContentLayerClient::GraphicsContextStatus = Graph icsContextEnabled) OVERRIDE FINAL;
91 WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) O VERRIDE FINAL; 91 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) OVE RRIDE FINAL;
92 92
93 // WebPopupMenuImpl 93 // WebPopupMenuImpl
94 void initialize(PopupContainer* widget, const WebRect& bounds); 94 void initialize(PopupContainer* widget, const WebRect& bounds);
95 95
96 WebWidgetClient* client() { return m_client; } 96 WebWidgetClient* client() { return m_client; }
97 97
98 void handleMouseMove(const WebMouseEvent&); 98 void handleMouseMove(const WebMouseEvent&);
99 void handleMouseLeave(const WebMouseEvent&); 99 void handleMouseLeave(const WebMouseEvent&);
100 void handleMouseDown(const WebMouseEvent&); 100 void handleMouseDown(const WebMouseEvent&);
101 void handleMouseUp(const WebMouseEvent&); 101 void handleMouseUp(const WebMouseEvent&);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 }; 136 };
137 137
138 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu()); 138 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu());
139 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so 139 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so
140 // no need for further checking. 140 // no need for further checking.
141 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); 141 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true);
142 142
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif 145 #endif
OLDNEW
« no previous file with comments | « Source/web/LinkHighlight.cpp ('k') | Source/web/WebPopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698