OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/login/screen_locker.h" | 5 #include "chrome/browser/chromeos/login/screen_locker.h" |
6 #include "chrome/browser/chromeos/notifications/system_notification.h" | 6 #include "chrome/browser/chromeos/notifications/system_notification.h" |
7 #include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h" | 7 #include "chrome/browser/chromeos/xinput_hierarchy_changed_event_listener.h" |
8 #include "chrome/browser/ui/views/frame/browser_view.h" | 8 #include "chrome/browser/ui/views/frame/browser_view.h" |
9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
10 #include "chrome/browser/notifications/balloon_collection.h" | 10 #include "chrome/browser/notifications/balloon_collection.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // static | 195 // static |
196 void ScreenLocker::InitClass() { | 196 void ScreenLocker::InitClass() { |
197 NOTIMPLEMENTED(); | 197 NOTIMPLEMENTED(); |
198 } | 198 } |
199 | 199 |
200 void ScreenLocker::ScreenLockReady() { | 200 void ScreenLocker::ScreenLockReady() { |
201 NOTIMPLEMENTED(); | 201 NOTIMPLEMENTED(); |
202 } | 202 } |
203 | 203 |
204 } // namespace chromeos | 204 } // namespace chromeos |
205 | |
206 class BalloonCollectionStub : public BalloonCollection { | |
207 public: | |
208 BalloonCollectionStub() {} | |
209 virtual ~BalloonCollectionStub() {} | |
210 private: | |
211 void Add(const Notification& notification, Profile* profile) {} | |
212 bool RemoveById(const std::string& id) { return true; } | |
213 bool RemoveBySourceOrigin(const GURL& source_origin) { return true; } | |
214 void RemoveAll() {} | |
215 bool HasSpace() const { return true; } | |
216 void ResizeBalloon(Balloon* balloon, const gfx::Size& size) {} | |
217 void SetPositionPreference(PositionPreference position) {} | |
218 void DisplayChanged() {} | |
219 void OnBalloonClosed(Balloon* source) {} | |
220 const Balloons& GetActiveBalloons() { return balloons_; } | |
221 | |
222 Balloons balloons_; | |
223 }; | |
224 | |
225 // static | |
226 BalloonCollection* BalloonCollection::Create() { | |
227 return new BalloonCollectionStub; | |
228 } | |
OLD | NEW |