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

Side by Side Diff: Source/core/html/HTMLSelectElement.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/core/dom/Node.cpp ('k') | Source/core/html/HTMLSelectElementWin.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) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 1999 Antti Koivisto (koivisto@kde.org) 4 * (C) 1999 Antti Koivisto (koivisto@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * 10 *
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 } 1052 }
1053 1053
1054 if (!selectedOption && firstOption && !m_multiple && m_size <= 1) 1054 if (!selectedOption && firstOption && !m_multiple && m_size <= 1)
1055 firstOption->setSelectedState(true); 1055 firstOption->setSelectedState(true);
1056 1056
1057 setOptionsChangedOnRenderer(); 1057 setOptionsChangedOnRenderer();
1058 setNeedsStyleRecalc(); 1058 setNeedsStyleRecalc();
1059 setNeedsValidityCheck(); 1059 setNeedsValidityCheck();
1060 } 1060 }
1061 1061
1062 #if !OS(WINDOWS) 1062 #if !OS(WIN)
1063 bool HTMLSelectElement::platformHandleKeydownEvent(KeyboardEvent* event) 1063 bool HTMLSelectElement::platformHandleKeydownEvent(KeyboardEvent* event)
1064 { 1064 {
1065 if (!RenderTheme::theme().popsMenuByArrowKeys()) 1065 if (!RenderTheme::theme().popsMenuByArrowKeys())
1066 return false; 1066 return false;
1067 1067
1068 if (!isSpatialNavigationEnabled(document().frame())) { 1068 if (!isSpatialNavigationEnabled(document().frame())) {
1069 if (event->keyIdentifier() == "Down" || event->keyIdentifier() == "Up") { 1069 if (event->keyIdentifier() == "Down" || event->keyIdentifier() == "Up") {
1070 focus(); 1070 focus();
1071 // Calling focus() may cause us to lose our renderer. Return true so 1071 // Calling focus() may cause us to lose our renderer. Return true so
1072 // that our caller doesn't process the event further, but don't set 1072 // that our caller doesn't process the event further, but don't set
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 return true; 1573 return true;
1574 } 1574 }
1575 1575
1576 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt ate& es) 1576 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt ate& es)
1577 { 1577 {
1578 remove(index); 1578 remove(index);
1579 return true; 1579 return true;
1580 } 1580 }
1581 1581
1582 } // namespace 1582 } // namespace
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/html/HTMLSelectElementWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698