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

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

Issue 12621008: chrome-search: should not be display-isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/instant_page.h" 5 #include "chrome/browser/ui/search/instant_page.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ui::ResourceBundle::FontStyle font_style = ui::ResourceBundle::MediumFont; 49 ui::ResourceBundle::FontStyle font_style = ui::ResourceBundle::MediumFont;
50 #endif 50 #endif
51 const gfx::Font& omnibox_font = 51 const gfx::Font& omnibox_font =
52 ui::ResourceBundle::GetSharedInstance().GetFont(font_style); 52 ui::ResourceBundle::GetSharedInstance().GetFont(font_style);
53 string16 omnibox_font_name = UTF8ToUTF16(omnibox_font.GetFontName()); 53 string16 omnibox_font_name = UTF8ToUTF16(omnibox_font.GetFontName());
54 size_t omnibox_font_size = omnibox_font.GetFontSize(); 54 size_t omnibox_font_size = omnibox_font.GetFontSize();
55 Send(new ChromeViewMsg_SearchBoxFontInformation( 55 Send(new ChromeViewMsg_SearchBoxFontInformation(
56 routing_id(), omnibox_font_name, omnibox_font_size)); 56 routing_id(), omnibox_font_name, omnibox_font_size));
57 } 57 }
58 58
59 void InstantPage::GrantChromeSearchAccessFromOrigin(const GURL& origin_url) {
60 DCHECK(origin_url.is_valid());
61 Send(new ChromeViewMsg_SearchBoxGrantChromeSearchAccessFromOrigin(
62 routing_id(), origin_url));
63 }
64
65 void InstantPage::DetermineIfPageSupportsInstant() { 59 void InstantPage::DetermineIfPageSupportsInstant() {
66 Send(new ChromeViewMsg_DetermineIfPageSupportsInstant(routing_id())); 60 Send(new ChromeViewMsg_DetermineIfPageSupportsInstant(routing_id()));
67 } 61 }
68 62
69 void InstantPage::SendAutocompleteResults( 63 void InstantPage::SendAutocompleteResults(
70 const std::vector<InstantAutocompleteResult>& results) { 64 const std::vector<InstantAutocompleteResult>& results) {
71 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results)); 65 Send(new ChromeViewMsg_SearchBoxAutocompleteResults(routing_id(), results));
72 } 66 }
73 67
74 void InstantPage::UpOrDownKeyPressed(int count) { 68 void InstantPage::UpOrDownKeyPressed(int count) {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 delegate_->DeleteMostVisitedItem(most_visited_item_id); 267 delegate_->DeleteMostVisitedItem(most_visited_item_id);
274 } 268 }
275 269
276 void InstantPage::OnUndoMostVisitedDeletion(uint64 most_visited_item_id) { 270 void InstantPage::OnUndoMostVisitedDeletion(uint64 most_visited_item_id) {
277 delegate_->UndoMostVisitedDeletion(most_visited_item_id); 271 delegate_->UndoMostVisitedDeletion(most_visited_item_id);
278 } 272 }
279 273
280 void InstantPage::OnUndoAllMostVisitedDeletions() { 274 void InstantPage::OnUndoAllMostVisitedDeletions() {
281 delegate_->UndoAllMostVisitedDeletions(); 275 delegate_->UndoAllMostVisitedDeletions();
282 } 276 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698