Chromium Code Reviews

Issue 119043: Add functions to glue to get the full html of the page and also to check if t... (Closed)

Created:
11 years, 6 months ago by Sverrir
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add functions to glue to get the full html of the page and also to check if the user has selected something. This is for enhanced printing support (in progress). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17427

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Stats (+53 lines, -0 lines)
M webkit/glue/webframe.h View 1 chunk +7 lines, -0 lines 3 comments
M webkit/glue/webframe_impl.h View 1 chunk +2 lines, -0 lines 0 comments
M webkit/glue/webframe_impl.cc View 2 chunks +10 lines, -0 lines 3 comments
M webkit/glue/webframe_unittest.cc View 1 chunk +34 lines, -0 lines 0 comments

Messages

Total messages: 5 (0 generated)
Sverrir
Prepare print selection, also added a function that gets the full html of the page ...
11 years, 6 months ago (2009-06-02 16:10:22 UTC) #1
M-A Ruel
http://codereview.chromium.org/119043/diff/1/3 File webkit/glue/webframe.h (right): http://codereview.chromium.org/119043/diff/1/3#newcode329 Line 329: // Checks if there is currently a selected ...
11 years, 6 months ago (2009-06-02 16:15:09 UTC) #2
Sverrir
Commments below. On 2009/06/02 16:15:09, M-A wrote: > http://codereview.chromium.org/119043/diff/1/3 > File webkit/glue/webframe.h (right): > > ...
11 years, 6 months ago (2009-06-02 17:19:03 UTC) #3
Sverrir
Comments below (now) http://codereview.chromium.org/119043/diff/1/3 File webkit/glue/webframe.h (right): http://codereview.chromium.org/119043/diff/1/3#newcode329 Line 329: // Checks if there is ...
11 years, 6 months ago (2009-06-02 17:19:58 UTC) #4
M-A Ruel
11 years, 6 months ago (2009-06-02 18:27:40 UTC) #5
lgtm even if I still doubt adding a function is necessary.

http://codereview.chromium.org/119043/diff/1/3
File webkit/glue/webframe.h (right):

http://codereview.chromium.org/119043/diff/1/3#newcode329
Line 329: // Checks if there is currently a selected area (indicates that
GetSelection
On 2009/06/02 17:19:58, Sverrir wrote:
> Sort of.  I'm not sure there is a defined contract for what GetSelection
returns
> if there is no selection - and that could change for all that I know.

There's only one user of GetSelection(false) and no user of GetSelection(true).
I guess I'm missing something since AFAIK Ctrl-C works so there must be
something I'm missing here.

http://codereview.chromium.org/119043/diff/1/2
File webkit/glue/webframe_impl.cc (right):

http://codereview.chromium.org/119043/diff/1/2#newcode1421
Line 1421: return (frame()->selection()->start() !=
On 2009/06/02 17:19:58, Sverrir wrote:
> Even when there is no selection the range is non-null.  I should possibly
change
> the GetSelection method to use HasSelection instead?

I guess it's fine. GetSelection() wants to return an empty string when nothing
is selected. As long as it's happening, it's fine.

Powered by Google App Engine