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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 2349523002: Add support for edit commands in OOPIFs. (Closed)
Patch Set: Created 4 years, 3 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 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 public: 310 public:
311 EmptyEditorClient() {} 311 EmptyEditorClient() {}
312 ~EmptyEditorClient() override {} 312 ~EmptyEditorClient() override {}
313 313
314 void respondToChangedContents() override {} 314 void respondToChangedContents() override {}
315 void respondToChangedSelection(LocalFrame*, SelectionType) override {} 315 void respondToChangedSelection(LocalFrame*, SelectionType) override {}
316 316
317 bool canCopyCut(LocalFrame*, bool defaultValue) const override { return defa ultValue; } 317 bool canCopyCut(LocalFrame*, bool defaultValue) const override { return defa ultValue; }
318 bool canPaste(LocalFrame*, bool defaultValue) const override { return defaul tValue; } 318 bool canPaste(LocalFrame*, bool defaultValue) const override { return defaul tValue; }
319 319
320 bool handleKeyboardEvent() override { return false; } 320 bool handleKeyboardEvent(LocalFrame*) override { return false; }
321 }; 321 };
322 322
323 class EmptyContextMenuClient final : public ContextMenuClient { 323 class EmptyContextMenuClient final : public ContextMenuClient {
324 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); USING_FAST_MALLOC(EmptyContext MenuClient); 324 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); USING_FAST_MALLOC(EmptyContext MenuClient);
325 public: 325 public:
326 EmptyContextMenuClient() {} 326 EmptyContextMenuClient() {}
327 ~EmptyContextMenuClient() override {} 327 ~EmptyContextMenuClient() override {}
328 bool showContextMenu(const ContextMenu*, bool) override { return false; } 328 bool showContextMenu(const ContextMenu*, bool) override { return false; }
329 void clearContextMenu() override {} 329 void clearContextMenu() override {}
330 }; 330 };
331 331
332 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 332 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
333 333
334 } // namespace blink 334 } // namespace blink
335 335
336 #endif // EmptyClients_h 336 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp ('k') | third_party/WebKit/Source/core/page/EditorClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698