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

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

Issue 23672027: Rename OS(WINDOWS) to OS(WIN) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/config.h ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 int detail = event->isUIEvent() ? static_cast<UIEvent*>(event)->detail() : 0; 2435 int detail = event->isUIEvent() ? static_cast<UIEvent*>(event)->detail() : 0;
2436 if (dispatchDOMActivateEvent(detail, event)) 2436 if (dispatchDOMActivateEvent(detail, event))
2437 event->setDefaultHandled(); 2437 event->setDefaultHandled();
2438 } else if (eventType == eventNames().contextmenuEvent) { 2438 } else if (eventType == eventNames().contextmenuEvent) {
2439 if (Page* page = document().page()) 2439 if (Page* page = document().page())
2440 page->contextMenuController().handleContextMenuEvent(event); 2440 page->contextMenuController().handleContextMenuEvent(event);
2441 } else if (eventType == eventNames().textInputEvent) { 2441 } else if (eventType == eventNames().textInputEvent) {
2442 if (event->hasInterface(eventNames().interfaceForTextEvent)) 2442 if (event->hasInterface(eventNames().interfaceForTextEvent))
2443 if (Frame* frame = document().frame()) 2443 if (Frame* frame = document().frame())
2444 frame->eventHandler()->defaultTextInputEventHandler(static_cast< TextEvent*>(event)); 2444 frame->eventHandler()->defaultTextInputEventHandler(static_cast< TextEvent*>(event));
2445 #if OS(WINDOWS) 2445 #if OS(WIN)
2446 } else if (eventType == eventNames().mousedownEvent && event->isMouseEvent() ) { 2446 } else if (eventType == eventNames().mousedownEvent && event->isMouseEvent() ) {
2447 MouseEvent* mouseEvent = toMouseEvent(event); 2447 MouseEvent* mouseEvent = toMouseEvent(event);
2448 if (mouseEvent->button() == MiddleButton) { 2448 if (mouseEvent->button() == MiddleButton) {
2449 if (enclosingLinkEventParentOrSelf()) 2449 if (enclosingLinkEventParentOrSelf())
2450 return; 2450 return;
2451 2451
2452 RenderObject* renderer = this->renderer(); 2452 RenderObject* renderer = this->renderer();
2453 while (renderer && (!renderer->isBox() || !toRenderBox(renderer)->ca nBeScrolledAndHasScrollableArea())) 2453 while (renderer && (!renderer->isBox() || !toRenderBox(renderer)->ca nBeScrolledAndHasScrollableArea()))
2454 renderer = renderer->parent(); 2454 renderer = renderer->parent();
2455 2455
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2705 node->showTreeForThis(); 2705 node->showTreeForThis();
2706 } 2706 }
2707 2707
2708 void showNodePath(const WebCore::Node* node) 2708 void showNodePath(const WebCore::Node* node)
2709 { 2709 {
2710 if (node) 2710 if (node)
2711 node->showNodePathForThis(); 2711 node->showNodePathForThis();
2712 } 2712 }
2713 2713
2714 #endif 2714 #endif
OLDNEW
« no previous file with comments | « Source/config.h ('k') | Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698