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

Issue 159815: Refactor bookmark clipboard code to be cross platform. (Closed)

Created:
11 years, 4 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

GTK: implement bookmark manager copy/paste. - Refactor bookmark util clipboard code to be cross platform. - Add a CBF_DATA format for writing arbitrary data to the clipboard. - Change MenuGtk so that showing a menu only makes the menu items update asynchronously. This way we can show the menu immediately and we won't get in trouble if the delegate's IsCommandEnabled() runs a nested message loop. I did not do any mac-side implementation of the new clipboard stuff. The implementation should be easy when they get around to writing the bookmark manager. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22419

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : clean up #

Total comments: 21

Patch Set 4 : '' #

Patch Set 5 : review comments #

Patch Set 6 : ok NOW it works on windows #

Patch Set 7 : server error #

Patch Set 8 : fix UMR #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -80 lines) Patch
M base/clipboard.h View 1 2 3 4 5 6 7 7 chunks +21 lines, -4 lines 0 comments Download
M base/clipboard.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M base/clipboard_linux.cc View 1 2 3 4 5 6 7 4 chunks +27 lines, -4 lines 0 comments Download
M base/clipboard_unittest.cc View 5 6 7 10 chunks +39 lines, -21 lines 1 comment Download
M base/clipboard_win.cc View 2 3 4 5 6 7 3 chunks +43 lines, -0 lines 1 comment Download
M base/scoped_clipboard_writer.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M base/scoped_clipboard_writer.cc View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_drag_data.h View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_drag_data.cc View 1 2 3 4 5 2 chunks +60 lines, -7 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 5 3 chunks +11 lines, -39 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.cc View 1 2 3 4 5 5 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Evan Stade
I haven't tested this yet on Windows. It's been taking me all day to get ...
11 years, 4 months ago (2009-08-03 22:59:18 UTC) #1
sky
I hate to see two separate clipboard/dnd systems (OSExchangeData and Clipboard). On the views side ...
11 years, 4 months ago (2009-08-03 23:14:53 UTC) #2
Evan Stade
On 2009/08/03 23:14:53, sky wrote: > I hate to see two separate clipboard/dnd systems (OSExchangeData ...
11 years, 4 months ago (2009-08-03 23:23:17 UTC) #3
sky
Thanks for the clarification on drag and drop. It looks like you are adding the ...
11 years, 4 months ago (2009-08-03 23:43:58 UTC) #4
Ben Goodger (Google)
FYI, the original intent of OSExchangeData was that it be an opaque blob that had ...
11 years, 4 months ago (2009-08-03 23:49:06 UTC) #5
Evan Stade
updated. Works on Windows. http://codereview.chromium.org/159815/diff/1020/40 File base/clipboard.h (right): http://codereview.chromium.org/159815/diff/1020/40#newcode44 Line 44: CBF_DATA, On 2009/08/03 23:43:58, ...
11 years, 4 months ago (2009-08-04 00:59:59 UTC) #6
sky
11 years, 4 months ago (2009-08-04 16:14:28 UTC) #7
LGTM with the following changes.

http://codereview.chromium.org/159815/diff/1068/1080
File base/clipboard_unittest.cc (right):

http://codereview.chromium.org/159815/diff/1068/1080#newcode63
Line 63:
EXPECT_TRUE(clipboard.IsFormatAvailable(Clipboard::GetPlainTextWFormatType()));
nit > 80 chars

http://codereview.chromium.org/159815/diff/1068/1079
File base/clipboard_win.cc (right):

http://codereview.chromium.org/159815/diff/1068/1079#newcode403
Line 403: bool Clipboard::IsFormatAvailableByString(const std::string&
ascii_format) const {
nit: > 80

Powered by Google App Engine
This is Rietveld 408576698