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

Side by Side Diff: chrome/browser/ui/gtk/instant_overlay_controller_gtk.cc

Issue 12520005: Move desktop-specific Instant bits to c/b/ui/search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
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/browser/ui/gtk/instant_overlay_controller_gtk.h" 5 #include "chrome/browser/ui/gtk/instant_overlay_controller_gtk.h"
6 6
7 #include "chrome/browser/instant/instant_overlay_model.h"
8 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 7 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
9 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" 8 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h"
9 #include "chrome/browser/ui/search/instant_overlay_model.h"
10 10
11 InstantOverlayControllerGtk::InstantOverlayControllerGtk( 11 InstantOverlayControllerGtk::InstantOverlayControllerGtk(
12 BrowserWindowGtk* window, 12 BrowserWindowGtk* window,
13 TabContentsContainerGtk* contents) 13 TabContentsContainerGtk* contents)
14 : InstantOverlayController(window->browser()), 14 : InstantOverlayController(window->browser()),
15 window_(window), 15 window_(window),
16 contents_(contents) { 16 contents_(contents) {
17 } 17 }
18 18
19 InstantOverlayControllerGtk::~InstantOverlayControllerGtk() { 19 InstantOverlayControllerGtk::~InstantOverlayControllerGtk() {
20 } 20 }
21 21
22 void InstantOverlayControllerGtk::OverlayStateChanged( 22 void InstantOverlayControllerGtk::OverlayStateChanged(
23 const InstantOverlayModel& model) { 23 const InstantOverlayModel& model) {
24 if (model.mode().is_search_suggestions()) { 24 if (model.mode().is_search_suggestions()) {
25 // TODO(jered): Support non-100% height. 25 // TODO(jered): Support non-100% height.
26 contents_->SetOverlay(model.GetOverlayContents()); 26 contents_->SetOverlay(model.GetOverlayContents());
27 } else { 27 } else {
28 contents_->SetOverlay(NULL); 28 contents_->SetOverlay(NULL);
29 } 29 }
30 window_->MaybeShowBookmarkBar(false); 30 window_->MaybeShowBookmarkBar(false);
31 } 31 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/instant_overlay_controller_gtk.h ('k') | chrome/browser/ui/omnibox/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698