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

Side by Side Diff: webkit/glue/webframe_impl.h

Issue 66016: Let WebKit draw the active highlight for FindInPage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « no previous file | webkit/glue/webframe_impl.cc » ('j') | 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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 INVALIDATE_NOTHING = 0, 380 INVALIDATE_NOTHING = 0,
381 INVALIDATE_CONTENT_AREA = 1, 381 INVALIDATE_CONTENT_AREA = 1,
382 INVALIDATE_SCROLLBAR = 2, // vertical scrollbar only. 382 INVALIDATE_SCROLLBAR = 2, // vertical scrollbar only.
383 INVALIDATE_ALL = 3 // both content area and the scrollbar. 383 INVALIDATE_ALL = 3 // both content area and the scrollbar.
384 }; 384 };
385 385
386 // Invalidates a certain area within the frame. 386 // Invalidates a certain area within the frame.
387 void InvalidateArea(AreaToInvalidate area); 387 void InvalidateArea(AreaToInvalidate area);
388 388
389 // Add a WebKit TextMatch-highlight marker to nodes in a range. 389 // Add a WebKit TextMatch-highlight marker to nodes in a range.
390 void AddMarker(WebCore::Range* range); 390 void AddMarker(WebCore::Range* range, bool active_match);
391
392 // Sets the markers within a range as active or inactive.
393 void SetMarkerActive(WebCore::Range* range, bool active);
391 394
392 // Returns the ordinal of the first match in the frame specified. This 395 // Returns the ordinal of the first match in the frame specified. This
393 // function enumerates the frames, starting with the main frame and up to (but 396 // function enumerates the frames, starting with the main frame and up to (but
394 // not including) the frame passed in as a parameter and counts how many 397 // not including) the frame passed in as a parameter and counts how many
395 // matches have been found. 398 // matches have been found.
396 int OrdinalOfFirstMatchForFrame(WebFrameImpl* frame) const; 399 int OrdinalOfFirstMatchForFrame(WebFrameImpl* frame) const;
397 400
398 // Determines whether the scoping effort is required for a particular frame. 401 // Determines whether the scoping effort is required for a particular frame.
399 // It is not necessary if the frame is invisible, for example, or if this 402 // It is not necessary if the frame is invisible, for example, or if this
400 // is a repeat search that already returned nothing last time the same prefix 403 // is a repeat search that already returned nothing last time the same prefix
(...skipping 23 matching lines...) Expand all
424 // The input fields that are interested in edit events and their associated 427 // The input fields that are interested in edit events and their associated
425 // listeners. 428 // listeners.
426 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, 429 typedef HashMap<RefPtr<WebCore::HTMLInputElement>,
427 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; 430 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap;
428 PasswordListenerMap password_listeners_; 431 PasswordListenerMap password_listeners_;
429 432
430 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); 433 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl);
431 }; 434 };
432 435
433 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ 436 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698