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

Side by Side Diff: chrome/browser/ui/views/bubble/border_contents.cc

Issue 8761012: Remove the old views bubble code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bubble/border_contents.h ('k') | chrome/browser/ui/views/bubble/border_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698