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

Side by Side Diff: Source/core/page/ChromeClient.h

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Refactor WebSelection to align with Frame/VisibleSelection Created 5 years, 9 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class HitTestResult; 55 class HitTestResult;
56 class HTMLFormControlElement; 56 class HTMLFormControlElement;
57 class HTMLInputElement; 57 class HTMLInputElement;
58 class IntRect; 58 class IntRect;
59 class LocalFrame; 59 class LocalFrame;
60 class Node; 60 class Node;
61 class Page; 61 class Page;
62 class PagePopupDriver; 62 class PagePopupDriver;
63 class PopupMenuClient; 63 class PopupMenuClient;
64 64
65 struct CompositedSelectionBound; 65 struct CompositedSelection;
66 struct DateTimeChooserParameters; 66 struct DateTimeChooserParameters;
67 struct FrameLoadRequest; 67 struct FrameLoadRequest;
68 struct GraphicsDeviceAdapter; 68 struct GraphicsDeviceAdapter;
69 struct ViewportDescription; 69 struct ViewportDescription;
70 struct WindowFeatures; 70 struct WindowFeatures;
71 71
72 class ChromeClient { 72 class ChromeClient {
73 public: 73 public:
74 virtual void chromeDestroyed() = 0; 74 virtual void chromeDestroyed() = 0;
75 75
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr; } 176 virtual GraphicsLayerFactory* graphicsLayerFactory() const { return nullptr; }
177 177
178 // Pass 0 as the GraphicsLayer to detach the root layer. 178 // Pass 0 as the GraphicsLayer to detach the root layer.
179 // This sets the graphics layer for the LocalFrame's WebWidget, if it has on e. Otherwise 179 // This sets the graphics layer for the LocalFrame's WebWidget, if it has on e. Otherwise
180 // it sets it for the WebViewImpl. 180 // it sets it for the WebViewImpl.
181 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) = 0; 181 virtual void attachRootGraphicsLayer(GraphicsLayer*, LocalFrame* localRoot) = 0;
182 182
183 virtual void enterFullScreenForElement(Element*) { } 183 virtual void enterFullScreenForElement(Element*) { }
184 virtual void exitFullScreenForElement(Element*) { } 184 virtual void exitFullScreenForElement(Element*) { }
185 185
186 virtual void clearCompositedSelectionBounds() { } 186 virtual void clearCompositedSelection() { }
187 virtual void updateCompositedSelectionBounds(const CompositedSelectionBound& anchor, const CompositedSelectionBound& focus) { } 187 virtual void updateCompositedSelection(const CompositedSelection&) { }
188 188
189 virtual void needTouchEvents(bool) = 0; 189 virtual void needTouchEvents(bool) = 0;
190 190
191 virtual void setTouchAction(TouchAction) = 0; 191 virtual void setTouchAction(TouchAction) = 0;
192 192
193 // Checks if there is an opened popup, called by LayoutMenuList::showPopup() . 193 // Checks if there is an opened popup, called by LayoutMenuList::showPopup() .
194 virtual bool hasOpenedPopup() const = 0; 194 virtual bool hasOpenedPopup() const = 0;
195 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, Popup MenuClient*) = 0; 195 virtual PassRefPtrWillBeRawPtr<PopupMenu> createPopupMenu(LocalFrame&, Popup MenuClient*) = 0;
196 virtual DOMWindow* pagePopupWindowForTesting() const = 0; 196 virtual DOMWindow* pagePopupWindowForTesting() const = 0;
197 197
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 234
235 virtual void didUpdateTopControls() const { } 235 virtual void didUpdateTopControls() const { }
236 236
237 protected: 237 protected:
238 virtual ~ChromeClient() { } 238 virtual ~ChromeClient() { }
239 }; 239 };
240 240
241 } // namespace blink 241 } // namespace blink
242 242
243 #endif // ChromeClient_h 243 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698