| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |