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

Side by Side Diff: third_party/WebKit/Source/core/editing/SelectionController.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * Copyright (C) 2015 Google Inc. All rights reserved. 5 * Copyright (C) 2015 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 27 matching lines...) Expand all
38 #include "core/events/Event.h" 38 #include "core/events/Event.h"
39 #include "core/frame/FrameView.h" 39 #include "core/frame/FrameView.h"
40 #include "core/frame/LocalFrame.h" 40 #include "core/frame/LocalFrame.h"
41 #include "core/frame/Settings.h" 41 #include "core/frame/Settings.h"
42 #include "core/layout/LayoutView.h" 42 #include "core/layout/LayoutView.h"
43 #include "core/page/FocusController.h" 43 #include "core/page/FocusController.h"
44 #include "core/page/Page.h" 44 #include "core/page/Page.h"
45 #include "platform/RuntimeEnabledFeatures.h" 45 #include "platform/RuntimeEnabledFeatures.h"
46 46
47 namespace blink { 47 namespace blink {
48 PassOwnPtrWillBeRawPtr<SelectionController> SelectionController::create(LocalFra me& frame) 48 RawPtr<SelectionController> SelectionController::create(LocalFrame& frame)
49 { 49 {
50 return adoptPtrWillBeNoop(new SelectionController(frame)); 50 return new SelectionController(frame);
51 } 51 }
52 52
53 SelectionController::SelectionController(LocalFrame& frame) 53 SelectionController::SelectionController(LocalFrame& frame)
54 : m_frame(&frame) 54 : m_frame(&frame)
55 , m_mouseDownMayStartSelect(false) 55 , m_mouseDownMayStartSelect(false)
56 , m_mouseDownWasSingleClickInSelection(false) 56 , m_mouseDownWasSingleClickInSelection(false)
57 , m_mouseDownAllowsMultiClick(false) 57 , m_mouseDownAllowsMultiClick(false)
58 , m_selectionState(SelectionState::HaveNotStartedSelection) 58 , m_selectionState(SelectionState::HaveNotStartedSelection)
59 { 59 {
60 } 60 }
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 { 624 {
625 return m_frame->selection(); 625 return m_frame->selection();
626 } 626 }
627 627
628 bool isLinkSelection(const MouseEventWithHitTestResults& event) 628 bool isLinkSelection(const MouseEventWithHitTestResults& event)
629 { 629 {
630 return event.event().altKey() && event.isOverLink(); 630 return event.event().altKey() && event.isOverLink();
631 } 631 }
632 632
633 } // namespace blink 633 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionController.h ('k') | third_party/WebKit/Source/core/editing/SelectionEditor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698