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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 1959183002: Multi-Process Find-in-Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disabled tests on Android Release because of crbug.com/615291. Created 4 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
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void willShowInstallBannerPrompt(int requestId, const WebVector<WebString>& platforms, WebAppBannerPromptReply*) override; 222 void willShowInstallBannerPrompt(int requestId, const WebVector<WebString>& platforms, WebAppBannerPromptReply*) override;
223 WebSandboxFlags effectiveSandboxFlags() const override; 223 WebSandboxFlags effectiveSandboxFlags() const override;
224 void forceSandboxFlags(WebSandboxFlags) override; 224 void forceSandboxFlags(WebSandboxFlags) override;
225 void requestRunTask(WebSuspendableTask*) const override; 225 void requestRunTask(WebSuspendableTask*) const override;
226 void didCallAddSearchProvider() override; 226 void didCallAddSearchProvider() override;
227 void didCallIsSearchProviderInstalled() override; 227 void didCallIsSearchProviderInstalled() override;
228 void replaceSelection(const WebString&) override; 228 void replaceSelection(const WebString&) override;
229 bool find( 229 bool find(
230 int identifier, const WebString& searchText, const WebFindOptions&, 230 int identifier, const WebString& searchText, const WebFindOptions&,
231 bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr) override; 231 bool wrapWithinFrame, WebRect* selectionRect, bool* activeNow = nullptr) override;
232 void stopFinding(bool clearSelection) override; 232 void stopFinding(StopFindAction) override;
233 void scopeStringMatches( 233 void scopeStringMatches(
234 int identifier, const WebString& searchText, const WebFindOptions&, 234 int identifier, const WebString& searchText, const WebFindOptions&,
235 bool reset) override; 235 bool reset) override;
236 void cancelPendingScopingEffort() override; 236 void cancelPendingScopingEffort() override;
237 void increaseMatchCount(int count, int identifier) override; 237 void increaseMatchCount(int count, int identifier) override;
238 void resetMatchCount() override; 238 void resetMatchCount() override;
239 int findMatchMarkersVersion() const override; 239 int findMatchMarkersVersion() const override;
240 WebFloatRect activeFindMatchRect() override; 240 WebFloatRect activeFindMatchRect() override;
241 void findMatchRects(WebVector<WebFloatRect>&) override; 241 void findMatchRects(WebVector<WebFloatRect>&) override;
242 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove rride; 242 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove rride;
243 float distanceToNearestFindMatch(const WebFloatPoint&) override;
243 void setTickmarks(const WebVector<WebRect>&) override; 244 void setTickmarks(const WebVector<WebRect>&) override;
244 WebFrameWidget* frameWidget() const override; 245 WebFrameWidget* frameWidget() const override;
246 void clearActiveFindMatch() override;
245 247
246 // WebFrameImplBase methods: 248 // WebFrameImplBase methods:
247 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name, const AtomicString& uniqueName) override; 249 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name, const AtomicString& uniqueName) override;
248 LocalFrame* frame() const override { return m_frame.get(); } 250 LocalFrame* frame() const override { return m_frame.get(); }
249 251
250 void willBeDetached(); 252 void willBeDetached();
251 void willDetachParent(); 253 void willDetachParent();
252 254
253 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame * opener); 255 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame * opener);
254 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame* , WebSandboxFlags); 256 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame* , WebSandboxFlags);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 WebRemoteFrame* toWebRemoteFrame() override; 346 WebRemoteFrame* toWebRemoteFrame() override;
345 347
346 // Sets the local core frame and registers destruction observers. 348 // Sets the local core frame and registers destruction observers.
347 void setCoreFrame(LocalFrame*); 349 void setCoreFrame(LocalFrame*);
348 350
349 void loadJavaScriptURL(const KURL&); 351 void loadJavaScriptURL(const KURL&);
350 352
351 WebPlugin* focusedPluginIfInputMethodSupported(); 353 WebPlugin* focusedPluginIfInputMethodSupported();
352 ScrollableArea* layoutViewportScrollableArea() const; 354 ScrollableArea* layoutViewportScrollableArea() const;
353 355
356 // Returns true if the frame is focused.
357 bool isFocused() const;
358
354 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; 359 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl;
355 360
356 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This 361 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This
357 // reference is released when the frame is removed from the DOM or the entir e page is closed. 362 // reference is released when the frame is removed from the DOM or the entir e page is closed.
358 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy. 363 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy.
359 Member<LocalFrame> m_frame; 364 Member<LocalFrame> m_frame;
360 365
361 Member<WebDevToolsAgentImpl> m_devToolsAgent; 366 Member<WebDevToolsAgentImpl> m_devToolsAgent;
362 367
363 // This is set if the frame is the root of a local frame tree, and requires a widget for layout. 368 // This is set if the frame is the root of a local frame tree, and requires a widget for layout.
(...skipping 25 matching lines...) Expand all
389 // Accomplish that by keeping a self-referential Persistent<>. It is 394 // Accomplish that by keeping a self-referential Persistent<>. It is
390 // cleared upon close(). 395 // cleared upon close().
391 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 396 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
392 }; 397 };
393 398
394 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 399 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
395 400
396 } // namespace blink 401 } // namespace blink
397 402
398 #endif 403 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698