summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/frame/browser_view.cc
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 18:50:06 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 18:50:06 +0000
commit87eb037dbee1b56460aaee272bc18c3db2fd1adf (patch)
tree62a980d94438a44e336a77f19a6d3b20e829a6c2 /chrome/browser/chromeos/frame/browser_view.cc
parent89622004872be7f7ddaa24fa1694f76c7b9539b6 (diff)
downloadchromium_src-87eb037dbee1b56460aaee272bc18c3db2fd1adf.zip
chromium_src-87eb037dbee1b56460aaee272bc18c3db2fd1adf.tar.gz
chromium_src-87eb037dbee1b56460aaee272bc18c3db2fd1adf.tar.bz2
Add tests for ClockMenuButton.
Review URL: http://codereview.chromium.org/1130008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/frame/browser_view.cc')
-rw-r--r--chrome/browser/chromeos/frame/browser_view.cc17
1 files changed, 3 insertions, 14 deletions
diff --git a/chrome/browser/chromeos/frame/browser_view.cc b/chrome/browser/chromeos/frame/browser_view.cc
index 0520eb6..db06e22 100644
--- a/chrome/browser/chromeos/frame/browser_view.cc
+++ b/chrome/browser/chromeos/frame/browser_view.cc
@@ -17,7 +17,6 @@
#include "chrome/browser/chromeos/status/network_menu_button.h"
#include "chrome/browser/chromeos/status/status_area_button.h"
#include "chrome/browser/chromeos/wm_ipc.h"
-#include "chrome/browser/view_ids.h"
#include "chrome/browser/views/app_launcher.h"
#include "chrome/browser/views/frame/browser_extender.h"
#include "chrome/browser/views/frame/browser_frame_gtk.h"
@@ -27,6 +26,7 @@
#include "chrome/browser/views/tabs/tab_strip.h"
#include "chrome/browser/views/toolbar_view.h"
#include "chrome/browser/views/toolbar_star_toggle.h"
+#include "chrome/browser/view_ids.h"
#include "gfx/canvas.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
@@ -107,17 +107,6 @@ class ChromeosTabStrip : public TabStrip {
DISALLOW_COPY_AND_ASSIGN(ChromeosTabStrip);
};
-// View ID used only in ChromeOS.
-enum ChromeOSViewIds {
- // Start with the offset that is big enough to avoid possible
- // collison.
- VIEW_ID_MAIN_MENU = VIEW_ID_PREDEFINED_COUNT + 10000,
- VIEW_ID_COMPACT_NAV_BAR,
- VIEW_ID_STATUS_AREA,
- VIEW_ID_SPACER,
- VIEW_ID_OTR_AVATAR,
-};
-
} // namespace
namespace chromeos {
@@ -150,7 +139,7 @@ class BrowserViewLayout : public ::BrowserViewLayout {
case VIEW_ID_SPACER:
spacer_ = view;
break;
- case VIEW_ID_MAIN_MENU:
+ case VIEW_ID_APP_MENU_BUTTON:
main_menu_button_ = view;
break;
case VIEW_ID_STATUS_AREA:
@@ -358,7 +347,7 @@ BrowserView::~BrowserView() {
void BrowserView::Init() {
::BrowserView::Init();
main_menu_button_ = new views::ImageButton(this);
- main_menu_button_->SetID(VIEW_ID_MAIN_MENU);
+ main_menu_button_->SetID(VIEW_ID_APP_MENU_BUTTON);
ThemeProvider* theme_provider =
frame()->GetThemeProviderForFrame();
SkBitmap* image = theme_provider->GetBitmapNamed(IDR_APP_LAUNCHER_BUTTON);