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

Side by Side Diff: views/view.cc

Issue 3201003: Fixed error message bubbles according to the latest mocks (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Comments resolved Created 10 years, 4 months 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
« no previous file with comments | « views/view.h ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "views/view.h" 5 #include "views/view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #ifndef NDEBUG 8 #ifndef NDEBUG
9 #include <iostream> 9 #include <iostream>
10 #endif 10 #endif
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 // If the view is not connected to a tree, there's nothing we can do. 1250 // If the view is not connected to a tree, there's nothing we can do.
1251 Widget* widget = src->GetWidget(); 1251 Widget* widget = src->GetWidget();
1252 if (widget) { 1252 if (widget) {
1253 ConvertPointToWidget(src, p); 1253 ConvertPointToWidget(src, p);
1254 gfx::Rect r; 1254 gfx::Rect r;
1255 widget->GetBounds(&r, false); 1255 widget->GetBounds(&r, false);
1256 p->SetPoint(p->x() + r.x(), p->y() + r.y()); 1256 p->SetPoint(p->x() + r.x(), p->y() + r.y());
1257 } 1257 }
1258 } 1258 }
1259 1259
1260 gfx::Rect View::GetScreenBounds() const {
1261 gfx::Point origin;
1262 View::ConvertPointToScreen(this, &origin);
1263 return gfx::Rect(origin, size());
1264 }
1265
1260 ///////////////////////////////////////////////////////////////////////////// 1266 /////////////////////////////////////////////////////////////////////////////
1261 // 1267 //
1262 // View - event handlers 1268 // View - event handlers
1263 // 1269 //
1264 ///////////////////////////////////////////////////////////////////////////// 1270 /////////////////////////////////////////////////////////////////////////////
1265 1271
1266 bool View::OnMousePressed(const MouseEvent& e) { 1272 bool View::OnMousePressed(const MouseEvent& e) {
1267 return false; 1273 return false;
1268 } 1274 }
1269 1275
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 possible_drag = false; 1520 possible_drag = false;
1515 start_pt = gfx::Point(); 1521 start_pt = gfx::Point();
1516 } 1522 }
1517 1523
1518 void View::DragInfo::PossibleDrag(const gfx::Point& p) { 1524 void View::DragInfo::PossibleDrag(const gfx::Point& p) {
1519 possible_drag = true; 1525 possible_drag = true;
1520 start_pt = p; 1526 start_pt = p;
1521 } 1527 }
1522 1528
1523 } // namespace 1529 } // namespace
OLDNEW
« no previous file with comments | « views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698