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

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

Issue 10644002: Add core plumbing for Instant Extended work (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed UI stuff from SearchModel Created 8 years, 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/search/search_ui.h"
6
7 namespace chrome {
8 namespace search {
9
10 const SkColor kNTPBackgroundColor = SkColorSetRGB(0xF5, 0xF5, 0xF5);
11 const SkColor kResultsSeparatorColor = SkColorSetRGB(226, 226, 226);
12 const SkColor kSearchBackgroundColor = SK_ColorWHITE;
13
14 const int kOmniboxYPosition = 310;
15 const int kSearchResultsHeight = 122;
16
17 gfx::Rect GetNTPOmniboxBounds(const gfx::Size& web_contents_size) {
18 const double kNTPPageWidthRatio = 0.73f;
19 if (web_contents_size.IsEmpty())
20 return gfx::Rect();
21 int width = static_cast<int>(kNTPPageWidthRatio *
22 static_cast<double>(web_contents_size.width()));
23 int x = (web_contents_size.width() - width) / 2;
24 return gfx::Rect(x, kOmniboxYPosition, width, 0);
25 }
26
27 } // namespace search
28 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698