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

Side by Side Diff: chrome/common/instant_types.cc

Issue 16413002: Moved theme related state from BrowserInstantController to InstantService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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
« no previous file with comments | « chrome/common/instant_types.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/common/instant_types.h" 5 #include "chrome/common/instant_types.h"
6 6
7 InstantSuggestion::InstantSuggestion() 7 InstantSuggestion::InstantSuggestion()
8 : behavior(INSTANT_COMPLETE_NOW), 8 : behavior(INSTANT_COMPLETE_NOW),
9 type(INSTANT_SUGGESTION_SEARCH), 9 type(INSTANT_SUGGESTION_SEARCH),
10 autocomplete_match_index(kNoMatchIndex) { 10 autocomplete_match_index(kNoMatchIndex) {
(...skipping 29 matching lines...) Expand all
40 color_a(0), 40 color_a(0),
41 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), 41 image_horizontal_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER),
42 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER), 42 image_vertical_alignment(THEME_BKGRND_IMAGE_ALIGN_CENTER),
43 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT), 43 image_tiling(THEME_BKGRND_IMAGE_NO_REPEAT),
44 image_height(0), 44 image_height(0),
45 has_attribution(false) { 45 has_attribution(false) {
46 } 46 }
47 47
48 ThemeBackgroundInfo::~ThemeBackgroundInfo() { 48 ThemeBackgroundInfo::~ThemeBackgroundInfo() {
49 } 49 }
50
51 bool ThemeBackgroundInfo::operator==(const ThemeBackgroundInfo& rhs) const {
52 return color_r == rhs.color_r &&
53 color_g == rhs.color_g &&
54 color_b == rhs.color_b &&
55 color_a == rhs.color_a &&
56 theme_id == rhs.theme_id &&
57 image_horizontal_alignment == rhs.image_horizontal_alignment &&
58 image_vertical_alignment == rhs.image_vertical_alignment &&
59 image_tiling == rhs.image_tiling &&
60 image_height == rhs.image_height &&
61 has_attribution == rhs.has_attribution;
62 }
OLDNEW
« no previous file with comments | « chrome/common/instant_types.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698