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/instant/instant_overlay_model.h" | 5 #include "chrome/browser/ui/search/instant_overlay_model.h" |
6 | 6 |
7 #include "chrome/browser/instant/instant_controller.h" | 7 #include "chrome/browser/ui/search/instant_controller.h" |
8 #include "chrome/browser/instant/instant_overlay_model_observer.h" | 8 #include "chrome/browser/ui/search/instant_overlay_model_observer.h" |
9 | 9 |
10 InstantOverlayModel::InstantOverlayModel(InstantController* controller) | 10 InstantOverlayModel::InstantOverlayModel(InstantController* controller) |
11 : height_(0), | 11 : height_(0), |
12 height_units_(INSTANT_SIZE_PIXELS), | 12 height_units_(INSTANT_SIZE_PIXELS), |
13 overlay_contents_(NULL), | 13 overlay_contents_(NULL), |
14 controller_(controller) { | 14 controller_(controller) { |
15 } | 15 } |
16 | 16 |
17 InstantOverlayModel::~InstantOverlayModel() { | 17 InstantOverlayModel::~InstantOverlayModel() { |
18 } | 18 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 void InstantOverlayModel::AddObserver(InstantOverlayModelObserver* observer) { | 59 void InstantOverlayModel::AddObserver(InstantOverlayModelObserver* observer) { |
60 observers_.AddObserver(observer); | 60 observers_.AddObserver(observer); |
61 } | 61 } |
62 | 62 |
63 void InstantOverlayModel::RemoveObserver( | 63 void InstantOverlayModel::RemoveObserver( |
64 InstantOverlayModelObserver* observer) { | 64 InstantOverlayModelObserver* observer) { |
65 observers_.RemoveObserver(observer); | 65 observers_.RemoveObserver(observer); |
66 } | 66 } |
OLD | NEW |