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

Side by Side Diff: views/view.cc

Issue 6384004: Browser should get notified if a views textfield changes focus. In addition, (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minor changes that were missed in last patch Created 9 years, 11 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 | Annotate | Revision Log
« views/view.h ('K') | « 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) 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 "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 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 int View::GetLineScrollIncrement(ScrollView* scroll_view, 1480 int View::GetLineScrollIncrement(ScrollView* scroll_view,
1481 bool is_horizontal, bool is_positive) { 1481 bool is_horizontal, bool is_positive) {
1482 return 0; 1482 return 0;
1483 } 1483 }
1484 1484
1485 ThemeProvider* View::GetThemeProvider() const { 1485 ThemeProvider* View::GetThemeProvider() const {
1486 Widget* widget = GetWidget(); 1486 Widget* widget = GetWidget();
1487 return widget ? widget->GetThemeProvider() : NULL; 1487 return widget ? widget->GetThemeProvider() : NULL;
1488 } 1488 }
1489 1489
1490 View::ContentType View::GetContentType() {
oshima 2011/01/27 23:39:09 const
varunjain 2011/01/28 01:55:57 Done.
1491 return NONE;
1492 }
1493
1490 // static 1494 // static
1491 void View::RegisterChildrenForVisibleBoundsNotification( 1495 void View::RegisterChildrenForVisibleBoundsNotification(
1492 RootView* root, View* view) { 1496 RootView* root, View* view) {
1493 DCHECK(root && view); 1497 DCHECK(root && view);
1494 if (view->GetNotifyWhenVisibleBoundsInRootChanges()) 1498 if (view->GetNotifyWhenVisibleBoundsInRootChanges())
1495 root->RegisterViewForVisibleBoundsNotification(view); 1499 root->RegisterViewForVisibleBoundsNotification(view);
1496 for (int i = 0; i < view->GetChildViewCount(); ++i) 1500 for (int i = 0; i < view->GetChildViewCount(); ++i)
1497 RegisterChildrenForVisibleBoundsNotification(root, view->GetChildViewAt(i)); 1501 RegisterChildrenForVisibleBoundsNotification(root, view->GetChildViewAt(i));
1498 } 1502 }
1499 1503
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 possible_drag = false; 1536 possible_drag = false;
1533 start_pt = gfx::Point(); 1537 start_pt = gfx::Point();
1534 } 1538 }
1535 1539
1536 void View::DragInfo::PossibleDrag(const gfx::Point& p) { 1540 void View::DragInfo::PossibleDrag(const gfx::Point& p) {
1537 possible_drag = true; 1541 possible_drag = true;
1538 start_pt = p; 1542 start_pt = p;
1539 } 1543 }
1540 1544
1541 } // namespace 1545 } // namespace
OLDNEW
« views/view.h ('K') | « views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698