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

Side by Side Diff: chrome/browser/chromeos/compact_navigation_bar.cc

Issue 341044: Move chromeos code to namespace chromeos. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/compact_navigation_bar.h" 5 #include "chrome/browser/chromeos/compact_navigation_bar.h"
6 6
7 #include "app/gfx/canvas.h" 7 #include "app/gfx/canvas.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "app/theme_provider.h" 9 #include "app/theme_provider.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" 11 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h"
12 #include "chrome/browser/browser.h" 12 #include "chrome/browser/browser.h"
13 #include "chrome/browser/browser_window.h" 13 #include "chrome/browser/browser_window.h"
14 #include "chrome/browser/chromeos/status_area_view.h" 14 #include "chrome/browser/chromeos/status_area_view.h"
15 #include "chrome/browser/profile.h" 15 #include "chrome/browser/profile.h"
16 #include "chrome/browser/tab_contents/tab_contents.h" 16 #include "chrome/browser/tab_contents/tab_contents.h"
17 #include "grit/theme_resources.h" 17 #include "grit/theme_resources.h"
18 #include "views/controls/button/image_button.h" 18 #include "views/controls/button/image_button.h"
19 #include "views/controls/image_view.h" 19 #include "views/controls/image_view.h"
20 #include "views/controls/native/native_view_host.h" 20 #include "views/controls/native/native_view_host.h"
21 21
22 namespace chromeos {
23
22 // Padding inside each button around the image. 24 // Padding inside each button around the image.
23 static const int kInnerPadding = 1; 25 static const int kInnerPadding = 1;
24 26
25 // Spacing between buttons. 27 // Spacing between buttons.
26 static const int kHorizPadding = 3; 28 static const int kHorizPadding = 3;
27 29
28 static const int kURLWidth = 180; 30 static const int kURLWidth = 180;
29 31
30 // Preferred height. 32 // Preferred height.
31 static const int kPreferredHeight = 25; 33 static const int kPreferredHeight = 25;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 browser_->GetSelectedTabContents()->controller().LoadURL( 236 browser_->GetSelectedTabContents()->controller().LoadURL(
235 url, GURL(), transition); 237 url, GURL(), transition);
236 break; 238 break;
237 } 239 }
238 case StatusAreaView::OPEN_TABS_ON_RIGHT: { 240 case StatusAreaView::OPEN_TABS_ON_RIGHT: {
239 browser_->AddTabWithURL(url, GURL(), transition, true, -1, true, NULL); 241 browser_->AddTabWithURL(url, GURL(), transition, true, -1, true, NULL);
240 break; 242 break;
241 } 243 }
242 } 244 }
243 } 245 }
246
247 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698