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

Issue 10736008: Added reload drop-down menu for the Reload button on Linux when in the DevTools mode. (Closed)

Created:
8 years, 5 months ago by gene
Modified:
8 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Added reload drop-down menu for the Reload button on Linux when in the DevTools mode. When on the tab with DevTools opened, Reload button of the browser will behave similar to Back button. Simple click will still perform default reload. Long click, right click or click and move down will bring up drop-down menu and allow user to specify Normal, Hard or Clear Cache and Hard Reload. This is Linux only UI change now. Win and Mac will follow after commiting this CL. BUG=136670 TEST=Open webpage. Bring up DevTools. Verify Reload button behavior. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146340

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments. #

Patch Set 3 : Addressed comment about browser interface. #

Total comments: 1

Patch Set 4 : addressed comment #

Total comments: 1

Patch Set 5 : addressed comment #

Patch Set 6 : addressed ui comments #

Patch Set 7 : rebase to remove conflicts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -38 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/reload_button_gtk.h View 1 2 3 4 5 6 5 chunks +51 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/reload_button_gtk.cc View 1 2 3 4 5 6 10 chunks +216 lines, -37 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
gene
Pavel, Patrick could you please take a look at this CL implementing Reload menu in ...
8 years, 5 months ago (2012-07-10 09:31:13 UTC) #1
pfeldman
DevTools and general plumbing looks good. - needs someone from the GTK side to review ...
8 years, 5 months ago (2012-07-10 16:24:53 UTC) #2
pfeldman
https://chromiumcodereview.appspot.com/10736008/diff/1/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://chromiumcodereview.appspot.com/10736008/diff/1/chrome/browser/ui/browser.cc#newcode573 chrome/browser/ui/browser.cc:573: return content::DevToolsAgentHostRegistry::IsDebuggerAttached( IsDebuggerAttached won't handle 0 web contents. https://chromiumcodereview.appspot.com/10736008/diff/1/chrome/browser/ui/browser.h ...
8 years, 5 months ago (2012-07-10 16:44:56 UTC) #3
gene
done, please take a look
8 years, 5 months ago (2012-07-10 17:10:11 UTC) #4
Elliot Glaysher
gtk lgtm I do wonder if this is discoverable.
8 years, 5 months ago (2012-07-10 17:12:31 UTC) #5
gene
OWNERS, could you please take a look? + cpu@ for chrome/app/generated_resources.grd + ben@ or sky@ ...
8 years, 5 months ago (2012-07-10 17:41:56 UTC) #6
Patrick Dubroy
On 2012/07/10 17:41:56, gene wrote: > OWNERS, could you please take a look? > > ...
8 years, 5 months ago (2012-07-10 17:56:06 UTC) #7
Ben Goodger (Google)
1. is this already implemented on other platforms? 2. no api on Browser. use browser_commands.cc
8 years, 5 months ago (2012-07-10 17:57:50 UTC) #8
Ben Goodger (Google)
On 2012/07/10 17:57:50, Ben Goodger (Google) wrote: > 1. is this already implemented on other ...
8 years, 5 months ago (2012-07-10 17:58:16 UTC) #9
gene1
1. Not yet. I wanted to implement first on Linux and make sure all the ...
8 years, 5 months ago (2012-07-10 18:06:23 UTC) #10
gene
On 2012/07/10 17:57:50, Ben Goodger (Google) wrote: > 1. is this already implemented on other ...
8 years, 5 months ago (2012-07-10 20:23:46 UTC) #11
Evan Stade
erg's LGTM stands for me. https://chromiumcodereview.appspot.com/10736008/diff/1010/chrome/browser/ui/gtk/reload_button_gtk.cc File chrome/browser/ui/gtk/reload_button_gtk.cc (right): https://chromiumcodereview.appspot.com/10736008/diff/1010/chrome/browser/ui/gtk/reload_button_gtk.cc#newcode425 chrome/browser/ui/gtk/reload_button_gtk.cc:425: if (browser_) { no ...
8 years, 5 months ago (2012-07-11 02:13:30 UTC) #12
Peter Kasting
Why only when dev tools are open? This can be useful at other times as ...
8 years, 5 months ago (2012-07-11 02:16:30 UTC) #13
Evan Stade
yea, there definitely should be a bug filed for this feature to track product questions ...
8 years, 5 months ago (2012-07-11 02:19:53 UTC) #14
gene
Done.
8 years, 5 months ago (2012-07-11 07:39:32 UTC) #15
gene
Sounds good to me. Let's do DevTools on all platforms first (since they benefit the ...
8 years, 5 months ago (2012-07-11 08:04:24 UTC) #16
gene
On 2012/07/11 02:19:53, Evan Stade wrote: > yea, there definitely should be a bug filed ...
8 years, 5 months ago (2012-07-11 08:04:36 UTC) #17
gene
BUG field updated, http://code.google.com/p/chromium/issues/detail?id=136670
8 years, 5 months ago (2012-07-11 10:06:59 UTC) #18
gene
Got ok from Glen on keeping this functionality only when DevTools are present for now.
8 years, 5 months ago (2012-07-11 15:55:30 UTC) #19
Ben Goodger (Google)
lgtm https://chromiumcodereview.appspot.com/10736008/diff/9008/chrome/browser/ui/browser_commands.cc File chrome/browser/ui/browser_commands.cc (right): https://chromiumcodereview.appspot.com/10736008/diff/9008/chrome/browser/ui/browser_commands.cc#newcode866 chrome/browser/ui/browser_commands.cc:866: return contents != NULL ? contents ?
8 years, 5 months ago (2012-07-11 16:14:31 UTC) #20
gene
Done.
8 years, 5 months ago (2012-07-11 16:39:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/10736008/1011
8 years, 5 months ago (2012-07-12 13:05:29 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/gtk/reload_button_gtk.cc: While running patch -p1 --forward --force; patching file chrome/browser/ui/gtk/reload_button_gtk.cc ...
8 years, 5 months ago (2012-07-12 13:05:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/10736008/1012
8 years, 5 months ago (2012-07-12 13:07:33 UTC) #24
commit-bot: I haz the power
8 years, 5 months ago (2012-07-12 14:24:40 UTC) #25
Change committed as 146340

Powered by Google App Engine
This is Rietveld 408576698