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

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

Issue 880653004: Blink side of changes to enable cache clearing without a flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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) 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual bool confirmComposition(const WebString& text) override final; 74 virtual bool confirmComposition(const WebString& text) override final;
75 virtual bool compositionRange(size_t* location, size_t* length) override fin al; 75 virtual bool compositionRange(size_t* location, size_t* length) override fin al;
76 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid e final; 76 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid e final;
77 virtual void setTextDirection(WebTextDirection) override final; 77 virtual void setTextDirection(WebTextDirection) override final;
78 virtual bool isAcceleratedCompositingActive() const override final { return false; } 78 virtual bool isAcceleratedCompositingActive() const override final { return false; }
79 virtual bool isPopupMenu() const override final { return true; } 79 virtual bool isPopupMenu() const override final { return true; }
80 virtual void willCloseLayerTreeView() override final; 80 virtual void willCloseLayerTreeView() override final;
81 81
82 // WebContentLayerClient 82 // WebContentLayerClient
83 virtual void paintContents(WebCanvas*, const WebRect& clip, WebContentLayerC lient::GraphicsContextStatus = GraphicsContextEnabled) override final; 83 virtual void paintContents(WebCanvas*, const WebRect& clip, WebContentLayerC lient::GraphicsContextStatus = GraphicsContextEnabled) override final;
84 virtual void paintContents(WebDisplayItemList*, const WebRect& clip, WebCont entLayerClient::GraphicsContextStatus = GraphicsContextEnabled) override final { } 84 virtual void paintContents(WebDisplayItemList*, const WebRect& clip, const b ool clearCaches = false,
85 WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) o verride final { }
85 86
86 // WebPopupMenuImpl 87 // WebPopupMenuImpl
87 void initialize(PopupContainer* widget, const WebRect& bounds); 88 void initialize(PopupContainer* widget, const WebRect& bounds);
88 89
89 WebWidgetClient* client() { return m_client; } 90 WebWidgetClient* client() { return m_client; }
90 91
91 void handleMouseMove(const WebMouseEvent&); 92 void handleMouseMove(const WebMouseEvent&);
92 void handleMouseLeave(const WebMouseEvent&); 93 void handleMouseLeave(const WebMouseEvent&);
93 void handleMouseDown(const WebMouseEvent&); 94 void handleMouseDown(const WebMouseEvent&);
94 void handleMouseUp(const WebMouseEvent&); 95 void handleMouseUp(const WebMouseEvent&);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 }; 129 };
129 130
130 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu()); 131 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu());
131 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so 132 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so
132 // no need for further checking. 133 // no need for further checking.
133 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); 134 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true);
134 135
135 } // namespace blink 136 } // namespace blink
136 137
137 #endif 138 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698