| OLD | NEW |
| 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 #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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 int View::GetPageScrollIncrement(ScrollView* scroll_view, | 1377 int View::GetPageScrollIncrement(ScrollView* scroll_view, |
| 1378 bool is_horizontal, bool is_positive) { | 1378 bool is_horizontal, bool is_positive) { |
| 1379 return 0; | 1379 return 0; |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 int View::GetLineScrollIncrement(ScrollView* scroll_view, | 1382 int View::GetLineScrollIncrement(ScrollView* scroll_view, |
| 1383 bool is_horizontal, bool is_positive) { | 1383 bool is_horizontal, bool is_positive) { |
| 1384 return 0; | 1384 return 0; |
| 1385 } | 1385 } |
| 1386 | 1386 |
| 1387 ThemeProvider* View::GetThemeProvider() { | 1387 ThemeProvider* View::GetThemeProvider() const { |
| 1388 Widget* widget = GetWidget(); | 1388 Widget* widget = GetWidget(); |
| 1389 return widget ? widget->GetThemeProvider() : NULL; | 1389 return widget ? widget->GetThemeProvider() : NULL; |
| 1390 } | 1390 } |
| 1391 | 1391 |
| 1392 // static | 1392 // static |
| 1393 void View::RegisterChildrenForVisibleBoundsNotification( | 1393 void View::RegisterChildrenForVisibleBoundsNotification( |
| 1394 RootView* root, View* view) { | 1394 RootView* root, View* view) { |
| 1395 DCHECK(root && view); | 1395 DCHECK(root && view); |
| 1396 if (view->GetNotifyWhenVisibleBoundsInRootChanges()) | 1396 if (view->GetNotifyWhenVisibleBoundsInRootChanges()) |
| 1397 root->RegisterViewForVisibleBoundsNotification(view); | 1397 root->RegisterViewForVisibleBoundsNotification(view); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 start_x = start_y = 0; | 1435 start_x = start_y = 0; |
| 1436 } | 1436 } |
| 1437 | 1437 |
| 1438 void View::DragInfo::PossibleDrag(int x, int y) { | 1438 void View::DragInfo::PossibleDrag(int x, int y) { |
| 1439 possible_drag = true; | 1439 possible_drag = true; |
| 1440 start_x = x; | 1440 start_x = x; |
| 1441 start_y = y; | 1441 start_y = y; |
| 1442 } | 1442 } |
| 1443 | 1443 |
| 1444 } // namespace | 1444 } // namespace |
| OLD | NEW |