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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 1625763002: Fix naming style of constants named in SHOUT_CASE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: caps-consts: unsigned Created 4 years, 10 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // focused, then the focus element shows with a focus ring but 420 // focused, then the focus element shows with a focus ring but
421 // no caret and does respond to keyboard inputs. 421 // no caret and does respond to keyboard inputs.
422 if (element->isTextFormControl()) { 422 if (element->isTextFormControl()) {
423 element->updateFocusAppearance(SelectionBehaviorOnFocus::Res tore); 423 element->updateFocusAppearance(SelectionBehaviorOnFocus::Res tore);
424 } else if (element->isContentEditable()) { 424 } else if (element->isContentEditable()) {
425 // updateFocusAppearance() selects all the text of 425 // updateFocusAppearance() selects all the text of
426 // contentseditable DIVs. So we set the selection explicitly 426 // contentseditable DIVs. So we set the selection explicitly
427 // instead. Note that this has the side effect of moving the 427 // instead. Note that this has the side effect of moving the
428 // caret back to the beginning of the text. 428 // caret back to the beginning of the text.
429 Position position(element, 0); 429 Position position(element, 0);
430 focusedFrame->selection().setSelection(VisibleSelection(posi tion, SEL_DEFAULT_AFFINITY)); 430 focusedFrame->selection().setSelection(VisibleSelection(posi tion, SelDefaultAffinity));
431 } 431 }
432 } 432 }
433 } 433 }
434 } 434 }
435 } 435 }
436 436
437 bool WebFrameWidgetImpl::setComposition( 437 bool WebFrameWidgetImpl::setComposition(
438 const WebString& text, 438 const WebString& text,
439 const WebVector<WebCompositionUnderline>& underlines, 439 const WebVector<WebCompositionUnderline>& underlines,
440 int selectionStart, 440 int selectionStart,
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 1083
1084 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p osInRootFrame) 1084 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p osInRootFrame)
1085 { 1085 {
1086 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo tFrame)); 1086 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo tFrame));
1087 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); 1087 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active);
1088 result.setToShadowHostIfInUserAgentShadowRoot(); 1088 result.setToShadowHostIfInUserAgentShadowRoot();
1089 return result; 1089 return result;
1090 } 1090 }
1091 1091
1092 } // namespace blink 1092 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/transforms/TransformationMatrix.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698