OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007 Apple, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple, Inc. All rights reserved. |
3 * Copyright (C) 2012 Google, Inc. All rights reserved. | 3 * Copyright (C) 2012 Google, Inc. All rights reserved. |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "core/frame/Frame.h" | 57 #include "core/frame/Frame.h" |
58 #include "core/page/Page.h" | 58 #include "core/page/Page.h" |
59 #include "core/page/Settings.h" | 59 #include "core/page/Settings.h" |
60 #include "core/platform/chromium/KeyboardCodes.h" | 60 #include "core/platform/chromium/KeyboardCodes.h" |
61 #include "core/rendering/RenderObject.h" | 61 #include "core/rendering/RenderObject.h" |
62 #include "platform/PlatformKeyboardEvent.h" | 62 #include "platform/PlatformKeyboardEvent.h" |
63 #include "wtf/text/WTFString.h" | 63 #include "wtf/text/WTFString.h" |
64 | 64 |
65 using namespace WebCore; | 65 using namespace WebCore; |
66 | 66 |
67 namespace WebKit { | 67 namespace blink { |
68 | 68 |
69 // Arbitrary depth limit for the undo stack, to keep it from using | 69 // Arbitrary depth limit for the undo stack, to keep it from using |
70 // unbounded memory. This is the maximum number of distinct undoable | 70 // unbounded memory. This is the maximum number of distinct undoable |
71 // actions -- unbroken stretches of typed characters are coalesced | 71 // actions -- unbroken stretches of typed characters are coalesced |
72 // into a single action. | 72 // into a single action. |
73 static const size_t maximumUndoStackDepth = 1000; | 73 static const size_t maximumUndoStackDepth = 1000; |
74 | 74 |
75 EditorClientImpl::EditorClientImpl(WebViewImpl* webview) | 75 EditorClientImpl::EditorClientImpl(WebViewImpl* webview) |
76 : m_webView(webview) | 76 : m_webView(webview) |
77 , m_inRedo(false) | 77 , m_inRedo(false) |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 #endif | 693 #endif |
694 } | 694 } |
695 | 695 |
696 void EditorClientImpl::willSetInputMethodState() | 696 void EditorClientImpl::willSetInputMethodState() |
697 { | 697 { |
698 if (m_webView->client()) | 698 if (m_webView->client()) |
699 m_webView->client()->resetInputMethod(); | 699 m_webView->client()->resetInputMethod(); |
700 } | 700 } |
701 | 701 |
702 } // namesace WebKit | 702 } // namesace WebKit |
OLD | NEW |