summaryrefslogtreecommitdiffstats
path: root/chrome/views/root_view.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 22:25:33 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 22:25:33 +0000
commit6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7 (patch)
tree4ce1316dbfd179681bdff905a7d71f1b4cbb902c /chrome/views/root_view.cc
parent4c45708be10906e3cdbe9d40d206cfd3fcbaf1c2 (diff)
downloadchromium_src-6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7.zip
chromium_src-6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7.tar.gz
chromium_src-6f3bb6ca5a2e423fc9dda71c164c7e8ae2a8eae7.tar.bz2
Rename legacy methods that were in CamelCase to unix_hacker.
Required going through and modifying some of the code to solve name clashes. Review URL: http://codereview.chromium.org/2945 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/root_view.cc')
-rw-r--r--chrome/views/root_view.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/chrome/views/root_view.cc b/chrome/views/root_view.cc
index d1c21c7..d3d1e96 100644
--- a/chrome/views/root_view.cc
+++ b/chrome/views/root_view.cc
@@ -158,9 +158,9 @@ void RootView::ProcessPaint(ChromeCanvas* canvas) {
canvas->save();
// Set the clip rect according to the invalid rect.
- int x = invalid_rect_.left + GetX();
- int y = invalid_rect_.top + GetY();
- canvas->ClipRectInt(x, y, invalid_rect_.Width(), invalid_rect_.Height());
+ int clip_x = invalid_rect_.left + x();
+ int clip_y = invalid_rect_.top + y();
+ canvas->ClipRectInt(clip_x, clip_y, invalid_rect_.Width(), invalid_rect_.Height());
// Paint the tree
View::ProcessPaint(canvas);
@@ -278,7 +278,7 @@ bool RootView::OnMousePressed(const MouseEvent& e) {
bool hit_disabled_view = false;
// Walk up the tree until we find a view that wants the mouse event.
- for (mouse_pressed_handler_ = GetViewForPoint(WTL::CPoint(e.GetX(), e.GetY()));
+ for (mouse_pressed_handler_ = GetViewForPoint(WTL::CPoint(e.x(), e.y()));
mouse_pressed_handler_ && (mouse_pressed_handler_ != this);
mouse_pressed_handler_ = mouse_pressed_handler_->GetParent()) {
if (!mouse_pressed_handler_->IsEnabled()) {
@@ -355,7 +355,7 @@ bool RootView::OnMouseDragged(const MouseEvent& e) {
SetMouseLocationAndFlags(e);
CPoint p;
- ConvertPointToMouseHandler(WTL::CPoint(e.GetX(), e.GetY()), &p);
+ ConvertPointToMouseHandler(WTL::CPoint(e.x(), e.y()), &p);
MouseEvent mouse_event(e.GetType(), p.x, p.y, e.GetFlags());
if (!mouse_pressed_handler_->ProcessMouseDragged(mouse_event,
&drag_info)) {
@@ -373,7 +373,7 @@ void RootView::OnMouseReleased(const MouseEvent& e, bool canceled) {
if (mouse_pressed_handler_) {
CPoint p;
- ConvertPointToMouseHandler(WTL::CPoint(e.GetX(), e.GetY()), &p);
+ ConvertPointToMouseHandler(WTL::CPoint(e.x(), e.y()), &p);
MouseEvent mouse_released(e.GetType(), p.x, p.y, e.GetFlags());
// We allow the view to delete us from ProcessMouseReleased. As such,
// configure state such that we're done first, then call View.
@@ -386,10 +386,10 @@ void RootView::OnMouseReleased(const MouseEvent& e, bool canceled) {
}
void RootView::UpdateCursor(const MouseEvent& e) {
- View *v = GetViewForPoint(WTL::CPoint(e.GetX(), e.GetY()));
+ View *v = GetViewForPoint(WTL::CPoint(e.x(), e.y()));
if (v && v != this) {
- CPoint l(e.GetX(), e.GetY());
+ CPoint l(e.x(), e.y());
View::ConvertPointToView(this, v, &l);
HCURSOR cursor = v->GetCursorForPoint(e.GetType(), l.x, l.y);
if (cursor) {
@@ -403,7 +403,7 @@ void RootView::UpdateCursor(const MouseEvent& e) {
}
void RootView::OnMouseMoved(const MouseEvent& e) {
- View *v = GetViewForPoint(WTL::CPoint(e.GetX(), e.GetY()));
+ View *v = GetViewForPoint(WTL::CPoint(e.x(), e.y()));
// Find the first enabled view.
while (v && !v->IsEnabled())
v = v->GetParent();
@@ -431,7 +431,7 @@ void RootView::OnMouseMoved(const MouseEvent& e) {
mouse_move_handler_->OnMouseMoved(moved_event);
HCURSOR cursor = mouse_move_handler_->GetCursorForPoint(
- moved_event.GetType(), moved_event.GetX(), moved_event.GetY());
+ moved_event.GetType(), moved_event.x(), moved_event.y());
if (cursor) {
previous_cursor_ = ::SetCursor(cursor);
} else if (previous_cursor_) {
@@ -880,8 +880,8 @@ void RootView::UnregisterViewForVisibleBoundsNotification(View* view) {
void RootView::SetMouseLocationAndFlags(const MouseEvent& e) {
last_mouse_event_flags_ = e.GetFlags();
- last_mouse_event_x_ = e.GetX();
- last_mouse_event_y_ = e.GetY();
+ last_mouse_event_x_ = e.x();
+ last_mouse_event_y_ = e.y();
}
std::string RootView::GetClassName() const {