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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm

Issue 2740993002: Remove unused instant_overlay_controller_mac.h/mm (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm b/chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm
deleted file mode 100644
index 3510721e14475e43e42f942c0339a404811c0849..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h"
-
-#import "chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h"
-#include "chrome/browser/ui/search/instant_overlay_model.h"
-
-InstantOverlayControllerMac::InstantOverlayControllerMac(
- Browser* browser,
- OverlayableContentsController* overlay)
- : InstantOverlayController(browser),
- overlay_(overlay) {
-}
-
-InstantOverlayControllerMac::~InstantOverlayControllerMac() {
-}
-
-void InstantOverlayControllerMac::OverlayStateChanged(
- const InstantOverlayModel& model) {
- if (model.mode().is_ntp() || model.mode().is_search_suggestions()) {
- // Drop shadow is only needed if search mode is not |NTP| and overlay does
- // not fill up the entire contents page.
- BOOL drawDropShadow = !model.mode().is_ntp() &&
- !(model.height() == 100 &&
- model.height_units() == INSTANT_SIZE_PERCENT);
- [overlay_ setOverlay:model.GetOverlayContents()
- height:model.height()
- heightUnits:model.height_units()
- drawDropShadow:drawDropShadow];
- } else if ([overlay_ isShowingOverlay]) {
- [overlay_ setOverlay:NULL
- height:0
- heightUnits:INSTANT_SIZE_PIXELS
- drawDropShadow:NO];
- }
-}
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698