| 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 else | 676 else |
| 677 m_selectionState = SelectionState::HaveNotStartedSelection; | 677 m_selectionState = SelectionState::HaveNotStartedSelection; |
| 678 } | 678 } |
| 679 | 679 |
| 680 FrameSelection& SelectionController::selection() const | 680 FrameSelection& SelectionController::selection() const |
| 681 { | 681 { |
| 682 return m_frame->selection(); | 682 return m_frame->selection(); |
| 683 } | 683 } |
| 684 | 684 |
| 685 } // namespace blink | 685 } // namespace blink |
| OLD | NEW |