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

Issue 186009: Obey gtk-cursor-blink setting (Closed)

Created:
11 years, 3 months ago by Joel Stanley (old)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Use gtk-cursor-blink from GtkSettings to set the caret blink interval on Linux This can be set with the "Cursor Blinking" slider and checkbox in gnome-keyboard-properties. The changed setting will appear in a new renderer, so opening a new tab will see the change. WebKit side is at https://bugs.webkit.org/show_bug.cgi?id=28931 Patch by Joel Stanley <joel@jms.id.au>; BUG=20772

Patch Set 1 #

Total comments: 6

Patch Set 2 : Try 2 #

Patch Set 3 : try 3 #

Total comments: 1

Patch Set 4 : fixes #

Patch Set 5 : typo #

Patch Set 6 : fixes #

Patch Set 7 : commment typo #

Total comments: 2

Patch Set 8 : comment #

Patch Set 9 : rebase #

Patch Set 10 : 2 #

Patch Set 11 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
M chrome/common/gtk_util.cc View 1 2 3 4 5 6 7 8 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/renderer_preferences.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/render_view.cc View 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webview.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/webview_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/webview_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Joel Stanley (old)
This is a first pass. It compiles, and appears to stop the cursor from blinking ...
11 years, 3 months ago (2009-09-02 15:44:22 UTC) #1
Evan Martin
Seems good so far. I don't see where SetCursorBlinkInterval is getting called. In theory we ...
11 years, 3 months ago (2009-09-02 16:05:51 UTC) #2
tony
LGTM, just a nit. http://codereview.chromium.org/186009/diff/1/2 File chrome/common/gtk_util.cc (right): http://codereview.chromium.org/186009/diff/1/2#newcode378 Line 378: // XXX http://tinyurl.com/nges73 (mozilla's ...
11 years, 3 months ago (2009-09-03 00:14:27 UTC) #3
Joel Stanley (old)
On 2009/09/02 16:05:51, Evan Martin wrote: > Seems good so far. I don't see where ...
11 years, 3 months ago (2009-09-03 02:02:41 UTC) #4
Joel Stanley (old)
Here's the review comments. http://codereview.chromium.org/186009/diff/1/2 File chrome/common/gtk_util.cc (right): http://codereview.chromium.org/186009/diff/1/2#newcode357 Line 357: gint cursor_blink_time = 1200; ...
11 years, 3 months ago (2009-09-03 02:03:45 UTC) #5
Evan Martin
LGTM http://codereview.chromium.org/186009/diff/5008/6009 File chrome/common/renderer_preferences.h (right): http://codereview.chromium.org/186009/diff/5008/6009#newcode58 Line 58: // Currently only changed from default Linux. ...
11 years, 3 months ago (2009-09-03 21:10:10 UTC) #6
Joel Stanley (old)
You were right in your first comment; SetCursorBlinkInterval was not being called. I also updated ...
11 years, 3 months ago (2009-09-05 15:22:28 UTC) #7
dimitri.glazkov
Joel, I had to roll out the webkit side. It caused layout test failures and ...
11 years, 3 months ago (2009-09-06 04:13:52 UTC) #8
Joel Stanley (old)
he patch has landed upstream and stuck the second time. Can I get this reviewed ...
11 years, 3 months ago (2009-09-08 12:49:09 UTC) #9
Evan Martin
LGTM++ http://codereview.chromium.org/186009/diff/9016/7004 File chrome/common/gtk_util.cc (right): http://codereview.chromium.org/186009/diff/9016/7004#newcode357 Line 357: static const gint kGtkDefaultCursorBlinkTime = 1200; Maybe ...
11 years, 3 months ago (2009-09-08 18:43:23 UTC) #10
Joel Stanley (old)
Thanks. Please commit for me. http://codereview.chromium.org/186009/diff/9016/7004 File chrome/common/gtk_util.cc (right): http://codereview.chromium.org/186009/diff/9016/7004#newcode357 Line 357: static const gint ...
11 years, 3 months ago (2009-09-09 02:08:42 UTC) #11
Evan Martin
r25797
11 years, 3 months ago (2009-09-09 22:07:17 UTC) #12
Evan Martin
reverted: 16:14:14 memcheck_analyze.py [ERROR] UninitCondition Conditional jump or move depends on uninitialised value(s) WebCore::TimerBase::setNextFireTime(double) (third_party/WebKit/WebCore/platform/Timer.cpp:295) ...
11 years, 3 months ago (2009-09-09 22:56:24 UTC) #13
Joel Stanley (old)
I've uploaded a rebased version. It now initialises caret_blink_interval in renderer_preferences.h, which was the only ...
11 years, 3 months ago (2009-09-17 04:22:25 UTC) #14
Evan Martin
I patched this in but it didn't compile (typo "LINUX" for "OS_LINUX" in one place). ...
11 years, 3 months ago (2009-09-17 19:14:59 UTC) #15
Evan Martin
I think I recall Darin saying that these sorts of settings need to go through ...
11 years, 3 months ago (2009-09-17 19:29:13 UTC) #16
tony
WebPreferences are preferences in WebCore that all ports can set (like default font size or ...
11 years, 3 months ago (2009-09-17 19:35:25 UTC) #17
darin (slow to review)
As with the focus ring color, this property is really a global property of the ...
11 years, 3 months ago (2009-09-17 19:39:09 UTC) #18
tony
I see. Would that mean that some WebKit::WebSettings would be in WebPreferences and some would ...
11 years, 3 months ago (2009-09-17 20:41:24 UTC) #19
darin (slow to review)
Hmm... maybe we should step back and create two structures: RenderProcessSettings and RenderViewSettings. Then it ...
11 years, 3 months ago (2009-09-17 21:20:58 UTC) #20
tony
Thinking about this a bit more, what would actually go into RenderViewSettings? It looks like ...
11 years, 3 months ago (2009-09-17 21:31:00 UTC) #21
darin (slow to review)
Wow, I think you are right! I guess the purpose of glue/webpreferences.h went outthe door ...
11 years, 3 months ago (2009-09-17 21:50:03 UTC) #22
tony
11 years, 3 months ago (2009-09-17 22:03:52 UTC) #23
That sounds good to me!  We'd still need to resend if a preference
changes, but that's already true with WebPreferences.  I guess
RenderProcessSettings would just include WebPreferences as a member.
I will file a bug.

On Thu, Sep 17, 2009 at 2:49 PM, Darin Fisher <darin@chromium.org> wrote:
> Wow, I think you are right! =A0I guess the purpose of glue/webpreferences=
.h
> went out
> the door with the advent of WebSettings, so we should just lump
> WebPreferences
> into RendererPreferences, and only send it once when starting up a render=
er.
> Naming it RenderProcessSettings might be nice in case we ever do need to
> have
> view-specific settings.
> -Darin
>
> On Thu, Sep 17, 2009 at 2:30 PM, Tony Chang <tony@chromium.org> wrote:
>>
>> Thinking about this a bit more, what would actually go into
>> RenderViewSettings? =A0It looks like everything that's currently in
>> WebPreferences and RendererPreferences would fall under
>> RenderProcessSettings.
>>
>> On Thu, Sep 17, 2009 at 2:20 PM, Darin Fisher <darin@chromium.org> wrote=
:
>> > Hmm... =A0maybe we should step back and create two structures:
>> > =A0RenderProcessSettings and RenderViewSettings.
>> > Then it would be really obvious which things go where based on whether
>> > they
>> > are per process or per view. =A0When constructing a new WebView, we'd
>> > probably
>> > draw from each structure to populate the WebSettings for the WebView.
>> > WDYT?
>> > -Darin
>> >
>> > On Thu, Sep 17, 2009 at 1:41 PM, <tony@chromium.org> wrote:
>> >>
>> >> I see. =A0Would that mean that some WebKit::WebSettings would be in
>> >> WebPreferences
>> >> and some would be in RendererPreferences? =A0We treat some settings a=
s
>> >> global to
>> >> the browser (like plugins enabled or not
>> >> or default font faces) even though they are in WebKit::WebSettings.
>> >>
>> >>
>> >> On 2009/09/17 19:39:09, darin wrote:
>> >>>
>> >>> As with the focus ring color, this property is really a global
>> >>> property
>> >>> of the
>> >>> renderer. =A0While, Page has a theme, it really is always returning =
the
>> >>> default
>> >>> theme. =A0(Only Safari for Windows has multiple themes, and then it =
only
>> >>> has
>> >>
>> >> two.)
>> >>
>> >>> It seems to me that we should just have a place in the WebKit API fo=
r
>> >>> setting
>> >>> properties of the global theme. =A0We should use that instead of add=
ing
>> >>
>> >> preference
>> >>>
>> >>> setters on WebView.
>> >>
>> >>> Also, I think we should only have to initialize these global setting=
s
>> >>> once per
>> >>> renderer process instead of once per RenderView as we currently do.
>> >>
>> >>> Technically, WebPreferences is meant to map to WebKit::WebSettings,
>> >>> and
>> >>> RendererPreferences corresponds to the rest. =A0I think it would be =
nice
>> >>> if
>> >>> we
>> >>> could change things so that RendererPreferences could contain only t=
he
>> >>> global
>> >>> settings for a Renderer and WebPreferences could contain the
>> >>> preferences
>> >>> for a
>> >>> particular RenderView/WebView.
>> >>
>> >>> This is a bigger change I'm advocating, but I think cleaning this up
>> >>> is
>> >>> long
>> >>> overdue.
>> >>
>> >>
>> >>
>> >> http://codereview.chromium.org/186009
>> >
>> >
>
>

Powered by Google App Engine
This is Rietveld 408576698