| OLD | NEW |
| 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/cocoa/tab_contents/instant_overlay_controller_mac.h" | 5 #include "chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h" |
| 6 | 6 |
| 7 #include "chrome/browser/search/search.h" | 7 #include "chrome/browser/search/search.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 9 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 10 #include "chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h" | 10 #include "chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 browser_->tab_strip_model()->GetActiveWebContents(); | 57 browser_->tab_strip_model()->GetActiveWebContents(); |
| 58 if (active_web_contents) { | 58 if (active_web_contents) { |
| 59 SearchTabHelper* search_tab_helper = | 59 SearchTabHelper* search_tab_helper = |
| 60 SearchTabHelper::FromWebContents(active_web_contents); | 60 SearchTabHelper::FromWebContents(active_web_contents); |
| 61 if (search_tab_helper) { | 61 if (search_tab_helper) { |
| 62 search_tab_helper->model()->SetTopBarsVisible( | 62 search_tab_helper->model()->SetTopBarsVisible( |
| 63 ![overlay_ isShowingOverlay]); | 63 ![overlay_ isShowingOverlay]); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 | |
| 68 [window_ updateBookmarkBarStateForInstantOverlay]; | |
| 69 } | 67 } |
| OLD | NEW |