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

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

Issue 1923993002: Revert of Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return new InputMethodController(frame); 62 return new InputMethodController(frame);
63 } 63 }
64 64
65 InputMethodController::InputMethodController(LocalFrame& frame) 65 InputMethodController::InputMethodController(LocalFrame& frame)
66 : m_frame(&frame) 66 : m_frame(&frame)
67 , m_isDirty(false) 67 , m_isDirty(false)
68 , m_hasComposition(false) 68 , m_hasComposition(false)
69 { 69 {
70 } 70 }
71 71
72 InputMethodController::~InputMethodController()
73 {
74 }
75
72 bool InputMethodController::hasComposition() const 76 bool InputMethodController::hasComposition() const
73 { 77 {
74 return m_hasComposition; 78 return m_hasComposition;
75 } 79 }
76 80
77 inline Editor& InputMethodController::editor() const 81 inline Editor& InputMethodController::editor() const
78 { 82 {
79 return frame().editor(); 83 return frame().editor();
80 } 84 }
81 85
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 TypingCommand::deleteSelection(*frame().document()); 472 TypingCommand::deleteSelection(*frame().document());
469 } 473 }
470 474
471 DEFINE_TRACE(InputMethodController) 475 DEFINE_TRACE(InputMethodController)
472 { 476 {
473 visitor->trace(m_frame); 477 visitor->trace(m_frame);
474 visitor->trace(m_compositionRange); 478 visitor->trace(m_compositionRange);
475 } 479 }
476 480
477 } // namespace blink 481 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698