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

Side by Side Diff: Source/web/WebPagePopupImpl.cpp

Issue 1143043006: Cleanup: Move ChromeClient::m_lastSetMouseCursorForTesting to ChromeClientImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/InspectorOverlayImpl.cpp ('k') | no next file » | 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) 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void* webView() const override 135 void* webView() const override
136 { 136 {
137 return m_popup->m_webView; 137 return m_popup->m_webView;
138 } 138 }
139 139
140 IntSize minimumWindowSize() const override 140 IntSize minimumWindowSize() const override
141 { 141 {
142 return IntSize(0, 0); 142 return IntSize(0, 0);
143 } 143 }
144 144
145 void setCursorInternal(const Cursor& cursor) override 145 void setCursor(const Cursor& cursor) override
146 { 146 {
147 if (m_popup->m_webView->client()) 147 if (m_popup->m_webView->client())
148 m_popup->m_webView->client()->didChangeCursor(WebCursorInfo(cursor)) ; 148 m_popup->m_webView->client()->didChangeCursor(WebCursorInfo(cursor)) ;
149 } 149 }
150 150
151 void needTouchEvents(bool needsTouchEvents) override 151 void needTouchEvents(bool needsTouchEvents) override
152 { 152 {
153 m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents); 153 m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents);
154 } 154 }
155 155
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // A WebPagePopupImpl instance usually has two references. 519 // A WebPagePopupImpl instance usually has two references.
520 // - One owned by the instance itself. It represents the visible widget. 520 // - One owned by the instance itself. It represents the visible widget.
521 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the 521 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the
522 // WebPagePopupImpl to close. 522 // WebPagePopupImpl to close.
523 // We need them because the closing operation is asynchronous and the widget 523 // We need them because the closing operation is asynchronous and the widget
524 // can be closed while the WebViewImpl is unaware of it. 524 // can be closed while the WebViewImpl is unaware of it.
525 return adoptRef(new WebPagePopupImpl(client)).leakRef(); 525 return adoptRef(new WebPagePopupImpl(client)).leakRef();
526 } 526 }
527 527
528 } // namespace blink 528 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/InspectorOverlayImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698