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

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

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 , public RefCounted<WebViewImpl> 81 , public RefCounted<WebViewImpl>
82 , public WebGestureCurveTarget 82 , public WebGestureCurveTarget
83 , public PagePopupDriver 83 , public PagePopupDriver
84 , public PageWidgetEventHandler { 84 , public PageWidgetEventHandler {
85 public: 85 public:
86 static WebViewImpl* create(WebViewClient*); 86 static WebViewImpl* create(WebViewClient*);
87 87
88 // WebWidget methods: 88 // WebWidget methods:
89 virtual void close() OVERRIDE; 89 virtual void close() OVERRIDE;
90 virtual WebSize size() OVERRIDE; 90 virtual WebSize size() OVERRIDE;
91 virtual WebPoint screenPosition() OVERRIDE;
91 virtual void willStartLiveResize() OVERRIDE; 92 virtual void willStartLiveResize() OVERRIDE;
92 virtual void resize(const WebSize&) OVERRIDE; 93 virtual void resize(const WebSize&) OVERRIDE;
93 virtual void resizePinchViewport(const WebSize&) OVERRIDE; 94 virtual void resizePinchViewport(const WebSize&) OVERRIDE;
94 virtual void willEndLiveResize() OVERRIDE; 95 virtual void willEndLiveResize() OVERRIDE;
95 virtual void didEnterFullScreen() OVERRIDE; 96 virtual void didEnterFullScreen() OVERRIDE;
96 virtual void didExitFullScreen() OVERRIDE; 97 virtual void didExitFullScreen() OVERRIDE;
97 98
98 virtual void beginFrame(const WebBeginFrameArgs&) OVERRIDE; 99 virtual void beginFrame(const WebBeginFrameArgs&) OVERRIDE;
99 virtual void didCommitFrameToCompositor() OVERRIDE; 100 virtual void didCommitFrameToCompositor() OVERRIDE;
100 101
(...skipping 15 matching lines...) Expand all
116 const WebString& text, 117 const WebString& text,
117 const WebVector<WebCompositionUnderline>& underlines, 118 const WebVector<WebCompositionUnderline>& underlines,
118 int selectionStart, 119 int selectionStart,
119 int selectionEnd) OVERRIDE; 120 int selectionEnd) OVERRIDE;
120 virtual bool confirmComposition() OVERRIDE; 121 virtual bool confirmComposition() OVERRIDE;
121 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE; 122 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE;
122 virtual bool confirmComposition(const WebString& text) OVERRIDE; 123 virtual bool confirmComposition(const WebString& text) OVERRIDE;
123 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE; 124 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE;
124 virtual WebTextInputInfo textInputInfo() OVERRIDE; 125 virtual WebTextInputInfo textInputInfo() OVERRIDE;
125 virtual WebColor backgroundColor() const OVERRIDE; 126 virtual WebColor backgroundColor() const OVERRIDE;
127 virtual WebPagePopup* popup() const OVERRIDE;
126 virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const OVERRIDE ; 128 virtual bool selectionBounds(WebRect& anchor, WebRect& focus) const OVERRIDE ;
127 virtual void didShowCandidateWindow() OVERRIDE; 129 virtual void didShowCandidateWindow() OVERRIDE;
128 virtual void didUpdateCandidateWindow() OVERRIDE; 130 virtual void didUpdateCandidateWindow() OVERRIDE;
129 virtual void didHideCandidateWindow() OVERRIDE; 131 virtual void didHideCandidateWindow() OVERRIDE;
130 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio n& end) const OVERRIDE; 132 virtual bool selectionTextDirection(WebTextDirection& start, WebTextDirectio n& end) const OVERRIDE;
131 virtual bool isSelectionAnchorFirst() const OVERRIDE; 133 virtual bool isSelectionAnchorFirst() const OVERRIDE;
132 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E; 134 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E;
133 virtual void setTextDirection(WebTextDirection) OVERRIDE; 135 virtual void setTextDirection(WebTextDirection) OVERRIDE;
134 virtual bool isAcceleratedCompositingActive() const OVERRIDE; 136 virtual bool isAcceleratedCompositingActive() const OVERRIDE;
135 virtual void willCloseLayerTreeView() OVERRIDE; 137 virtual void willCloseLayerTreeView() OVERRIDE;
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 bool m_userGestureObserved; 717 bool m_userGestureObserved;
716 }; 718 };
717 719
718 // We have no ways to check if the specified WebView is an instance of 720 // We have no ways to check if the specified WebView is an instance of
719 // WebViewImpl because WebViewImpl is the only implementation of WebView. 721 // WebViewImpl because WebViewImpl is the only implementation of WebView.
720 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 722 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
721 723
722 } // namespace blink 724 } // namespace blink
723 725
724 #endif 726 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698