summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 16:22:16 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 16:22:16 +0000
commitad6b3cd72b40bc04276170127215f0fc104ac77e (patch)
tree929662b8bd8c708b8664b459c075555f264ea585 /chrome/browser
parent276cdecb905a3e3ed3ae81f2a8a615a3e0a04206 (diff)
downloadchromium_src-ad6b3cd72b40bc04276170127215f0fc104ac77e.zip
chromium_src-ad6b3cd72b40bc04276170127215f0fc104ac77e.tar.gz
chromium_src-ad6b3cd72b40bc04276170127215f0fc104ac77e.tar.bz2
Revert 45698 - Mac: Remove ToolbarButtonCell (and associated files).
.xib changes: change all ToolbarButtonCells to GradientButtonCells. BUG=42582 TEST=toolbar buttons and find bar buttons still work as before Review URL: http://codereview.chromium.org/1697011 TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/1695020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/cocoa/toolbar_button_cell.h27
-rw-r--r--chrome/browser/cocoa/toolbar_button_cell.mm8
-rw-r--r--chrome/browser/cocoa/toolbar_button_cell_unittest.mm6
3 files changed, 41 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/toolbar_button_cell.h b/chrome/browser/cocoa/toolbar_button_cell.h
new file mode 100644
index 0000000..c382ff7
--- /dev/null
+++ b/chrome/browser/cocoa/toolbar_button_cell.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_
+#define CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_
+
+#import <Cocoa/Cocoa.h>
+#import "chrome/browser/cocoa/clickhold_button_cell.h"
+
+// A button cell for the toolbar.
+
+// TODO(jrg): Why have a class at all when the base class does it all?
+// I anticipate making changes for extensions. Themes may also
+// require changes. I don't yet know if those will be common across
+// the toolbar and bookmark bar or not. The initial CL which made
+// this empty was the use of the base class for both toolbar and
+// bookmark bar button cells. It seems wasteful to remove the files
+// then add them back in soon after.
+// TODO(jrg): If no differences come up, remove this file and use
+// the base class explicitly for both the toolbar and bookmark bar.
+
+@interface ToolbarButtonCell : ClickHoldButtonCell {
+}
+@end
+
+#endif // CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_
diff --git a/chrome/browser/cocoa/toolbar_button_cell.mm b/chrome/browser/cocoa/toolbar_button_cell.mm
new file mode 100644
index 0000000..b434df9
--- /dev/null
+++ b/chrome/browser/cocoa/toolbar_button_cell.mm
@@ -0,0 +1,8 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "chrome/browser/cocoa/toolbar_button_cell.h"
+
+@implementation ToolbarButtonCell
+@end
diff --git a/chrome/browser/cocoa/toolbar_button_cell_unittest.mm b/chrome/browser/cocoa/toolbar_button_cell_unittest.mm
new file mode 100644
index 0000000..2963827
--- /dev/null
+++ b/chrome/browser/cocoa/toolbar_button_cell_unittest.mm
@@ -0,0 +1,6 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file is intentionally empty; there is no code in
+// ToolbarButtonCell to test.