summaryrefslogtreecommitdiffstats
path: root/chrome/browser/drag_utils.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 23:25:13 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 23:25:13 +0000
commit48c8fa63122510b2c51c6608a93b30e94192e679 (patch)
treedc22b80b2f4103d865cbfe47c6f4dc52c8595985 /chrome/browser/drag_utils.cc
parent9ea0ea99d3a1140a17712a286414d387eddbe8ac (diff)
downloadchromium_src-48c8fa63122510b2c51c6608a93b30e94192e679.zip
chromium_src-48c8fa63122510b2c51c6608a93b30e94192e679.tar.gz
chromium_src-48c8fa63122510b2c51c6608a93b30e94192e679.tar.bz2
Rework the Button API to be saner in preparation for NativeControl rejiggering.BaseButton->Button, CustomButtonButton->ImageButtonToggleButton->ToggleImageButtonRemoving SetListener (buttons take listener through ctor)Tidy up source files. No functionality changes, just naming and organization.Look at the button classes first, then everything else.
Review URL: http://codereview.chromium.org/46096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/drag_utils.cc')
-rw-r--r--chrome/browser/drag_utils.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/drag_utils.cc b/chrome/browser/drag_utils.cc
index 4383411..9fbb0bc 100644
--- a/chrome/browser/drag_utils.cc
+++ b/chrome/browser/drag_utils.cc
@@ -91,7 +91,8 @@ void SetURLAndDragImage(const GURL& url,
data->SetURL(url, title);
// Create a button to render the drag image for us.
- views::TextButton button(title.empty() ? UTF8ToWide(url.spec()) : title);
+ views::TextButton button(NULL,
+ title.empty() ? UTF8ToWide(url.spec()) : title);
button.set_max_width(BookmarkBarView::kMaxButtonWidth);
if (icon.isNull()) {
button.SetIcon(*ResourceBundle::GetSharedInstance().GetBitmapNamed(