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

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2810593002: Set plugin focus by implementing HTMLPlugInElement::SetFocused. (Closed)
Patch Set: fix comments Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 2340
2341 HTMLSlotElement* Node::assignedSlotForBinding() { 2341 HTMLSlotElement* Node::assignedSlotForBinding() {
2342 // assignedSlot doesn't need to call updateDistribution(). 2342 // assignedSlot doesn't need to call updateDistribution().
2343 if (ShadowRoot* root = V1ShadowRootOfParent()) { 2343 if (ShadowRoot* root = V1ShadowRootOfParent()) {
2344 if (root->GetType() == ShadowRootType::kOpen) 2344 if (root->GetType() == ShadowRootType::kOpen)
2345 return root->AssignedSlotFor(*this); 2345 return root->AssignedSlotFor(*this);
2346 } 2346 }
2347 return nullptr; 2347 return nullptr;
2348 } 2348 }
2349 2349
2350 void Node::SetFocused(bool flag) { 2350 void Node::SetFocused(bool flag, WebFocusType focus_type) {
2351 GetDocument().UserActionElements().SetFocused(this, flag); 2351 GetDocument().UserActionElements().SetFocused(this, flag);
2352 } 2352 }
2353 2353
2354 void Node::SetActive(bool flag) { 2354 void Node::SetActive(bool flag) {
2355 GetDocument().UserActionElements().SetActive(this, flag); 2355 GetDocument().UserActionElements().SetActive(this, flag);
2356 } 2356 }
2357 2357
2358 void Node::SetDragged(bool flag) { 2358 void Node::SetDragged(bool flag) {
2359 GetDocument().UserActionElements().SetDragged(this, flag); 2359 GetDocument().UserActionElements().SetDragged(this, flag);
2360 } 2360 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 if (node) { 2531 if (node) {
2532 std::stringstream stream; 2532 std::stringstream stream;
2533 node->PrintNodePathTo(stream); 2533 node->PrintNodePathTo(stream);
2534 LOG(INFO) << stream.str(); 2534 LOG(INFO) << stream.str();
2535 } else { 2535 } else {
2536 LOG(INFO) << "Cannot showNodePath for <null>"; 2536 LOG(INFO) << "Cannot showNodePath for <null>";
2537 } 2537 }
2538 } 2538 }
2539 2539
2540 #endif 2540 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/html/HTMLAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698