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

Side by Side Diff: chrome/views/view.h

Issue 13235: Cleanup adding BoundsInWidget to View to convert callers... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/views/tooltip_manager.cc ('k') | chrome/views/view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_VIEWS_VIEW_H_ 5 #ifndef CHROME_VIEWS_VIEW_H_
6 #define CHROME_VIEWS_VIEW_H_ 6 #define CHROME_VIEWS_VIEW_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlmisc.h> 10 #include <atlmisc.h>
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // ValidateFloatingViewForID if that view has not yet been attached. 648 // ValidateFloatingViewForID if that view has not yet been attached.
649 virtual View* RetrieveFloatingViewForID(int id); 649 virtual View* RetrieveFloatingViewForID(int id);
650 650
651 // Restores the focus to the previously selected floating view. 651 // Restores the focus to the previously selected floating view.
652 virtual void RestoreFloatingViewFocus(); 652 virtual void RestoreFloatingViewFocus();
653 653
654 // Goes up the parent hierarchy of this view and returns the first floating 654 // Goes up the parent hierarchy of this view and returns the first floating
655 // view found. Returns NULL if none were found. 655 // view found. Returns NULL if none were found.
656 View* RetrieveFloatingViewParent(); 656 View* RetrieveFloatingViewParent();
657 657
658 // Convert a point from the coordinate system of the current View to that of
659 // the current widget bounds on the screen.
660 gfx::Rect BoundsInWidget();
Ben Goodger (Google) 2008/12/08 20:40:08 Yeah I agree with Peter now after some reflection,
661
658 // Utility functions 662 // Utility functions
659 663
660 // Note that the utility coordinate conversions functions always operate on 664 // Note that the utility coordinate conversions functions always operate on
661 // the mirrored position of the child Views if the parent View uses a 665 // the mirrored position of the child Views if the parent View uses a
662 // right-to-left UI layout. 666 // right-to-left UI layout.
663 667
664 // Convert a point from source coordinate system to dst coordinate system. 668 // Convert a point from source coordinate system to dst coordinate system.
665 // 669 //
666 // source is a parent or a child of dst, directly or transitively. 670 // source is a parent or a child of dst, directly or transitively.
667 // If source and dst are not in the same View hierarchy, the result is 671 // If source and dst are not in the same View hierarchy, the result is
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 // right-to-left locales for this View. 1307 // right-to-left locales for this View.
1304 bool flip_canvas_on_paint_for_rtl_ui_; 1308 bool flip_canvas_on_paint_for_rtl_ui_;
1305 1309
1306 DISALLOW_COPY_AND_ASSIGN(View); 1310 DISALLOW_COPY_AND_ASSIGN(View);
1307 }; 1311 };
1308 1312
1309 } // namespace views 1313 } // namespace views
1310 1314
1311 #endif // CHROME_VIEWS_VIEW_H_ 1315 #endif // CHROME_VIEWS_VIEW_H_
1312 1316
OLDNEW
« no previous file with comments | « chrome/views/tooltip_manager.cc ('k') | chrome/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698