OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/ui/views/bubble/border_contents.h" | |
6 | |
7 #include "chrome/browser/ui/window_sizer.h" | |
8 | |
9 static const int kTopMargin = 6; | |
10 static const int kLeftMargin = 6; | |
11 static const int kBottomMargin = 9; | |
12 static const int kRightMargin = 6; | |
13 | |
14 BorderContents::BorderContents() | |
15 : BorderContentsView(kTopMargin, | |
16 kLeftMargin, | |
17 kBottomMargin, | |
18 kRightMargin) {} | |
19 | |
20 gfx::Rect BorderContents::GetMonitorBounds(const gfx::Rect& rect) { | |
21 scoped_ptr<WindowSizer::MonitorInfoProvider> monitor_provider( | |
22 WindowSizer::CreateDefaultMonitorInfoProvider()); | |
23 return monitor_provider->GetMonitorWorkAreaMatching(rect); | |
24 } | |
OLD | NEW |