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

Side by Side Diff: chrome/browser/ui/search/other_device_menu_controller.cc

Issue 12036003: Move window_open_disposition.h from webkit/ into ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 11 months 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/search/other_device_menu_controller.h" 5 #include "chrome/browser/ui/search/other_device_menu_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/browser/sync/glue/session_model_associator.h" 9 #include "chrome/browser/sync/glue/session_model_associator.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_finder.h" 11 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/browser_window.h" 12 #include "chrome/browser/ui/browser_window.h"
13 #include "chrome/browser/ui/webui/ntp/foreign_session_handler.h" 13 #include "chrome/browser/ui/webui/ntp/foreign_session_handler.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/browser/web_ui.h" 15 #include "content/public/browser/web_ui.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 #include "ui/base/text/text_elider.h" 18 #include "ui/base/text/text_elider.h"
19 #include "webkit/glue/window_open_disposition.h" 19 #include "ui/base/window_open_disposition.h"
20 20
21 namespace { 21 namespace {
22 22
23 // The max number of tabs that will be added to the menu. 23 // The max number of tabs that will be added to the menu.
24 const size_t kMaxTabsToShow = 18; 24 const size_t kMaxTabsToShow = 18;
25 25
26 // The max width of a menu. Menu text exceeding this will be elided. 26 // The max width of a menu. Menu text exceeding this will be elided.
27 const int kMaxWidth = 375; 27 const int kMaxWidth = 375;
28 28
29 // Enumerates the different menu item types. 29 // Enumerates the different menu item types.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 if (tab_data_.size() >= kMaxTabsToShow) 193 if (tab_data_.size() >= kMaxTabsToShow)
194 return; 194 return;
195 } 195 }
196 } 196 }
197 } 197 }
198 } 198 }
199 199
200 // OtherDevice menu ---------------------------------------------------------- 200 // OtherDevice menu ----------------------------------------------------------
201 201
202 OtherDeviceMenu::~OtherDeviceMenu() {} 202 OtherDeviceMenu::~OtherDeviceMenu() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view.h ('k') | chrome/browser/ui/toolbar/back_forward_menu_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698