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

Side by Side Diff: chrome/browser/ui/views/browser_bubble.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/browser_bubble.h ('k') | chrome/browser/ui/views/browser_bubble_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ui/views/browser_bubble.h" 5 #include "chrome/browser/ui/views/browser_bubble.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/views/frame/browser_view.h" 8 #include "chrome/browser/ui/views/frame/browser_view.h"
9 #include "views/widget/widget.h" 9 #include "ui/views/widget/widget.h"
10 10
11 BrowserBubble::BrowserBubble(Browser* browser, 11 BrowserBubble::BrowserBubble(Browser* browser,
12 views::View* view, 12 views::View* view,
13 const gfx::Rect& relative_to, 13 const gfx::Rect& relative_to,
14 views::BubbleBorder::ArrowLocation arrow_location) 14 views::BubbleBorder::ArrowLocation arrow_location)
15 : frame_(NULL), 15 : frame_(NULL),
16 view_(view), 16 view_(view),
17 relative_to_(relative_to), 17 relative_to_(relative_to),
18 arrow_location_(arrow_location), 18 arrow_location_(arrow_location),
19 delegate_(NULL), 19 delegate_(NULL),
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 gfx::Point relative_origin = window_bounds.origin(); 121 gfx::Point relative_origin = window_bounds.origin();
122 views::View::ConvertPointToView(NULL, frame_->GetRootView(), 122 views::View::ConvertPointToView(NULL, frame_->GetRootView(),
123 &relative_origin); 123 &relative_origin);
124 SetBounds(relative_origin.x(), relative_origin.y(), 124 SetBounds(relative_origin.x(), relative_origin.y(),
125 window_bounds.width(), window_bounds.height()); 125 window_bounds.width(), window_bounds.height());
126 } 126 }
127 127
128 void BrowserBubble::MovePopup(int x, int y, int w, int h) { 128 void BrowserBubble::MovePopup(int x, int y, int w, int h) {
129 popup_->SetBounds(gfx::Rect(x, y, w, h)); 129 popup_->SetBounds(gfx::Rect(x, y, w, h));
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/browser_bubble.h ('k') | chrome/browser/ui/views/browser_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698