source: webkit/trunk/Source/WebKit/UIProcess/DefaultUndoController.h

Last change on this file was 237110, checked in by [email protected], 7 years ago

Shrink more enum classes
https://bugs.webkit.org/show_bug.cgi?id=190540

Reviewed by Chris Dumez.

Source/JavaScriptCore:

  • runtime/ConsoleTypes.h:

Source/WebCore:

  • Modules/notifications/NotificationDirection.h:
  • dom/Document.h:
  • loader/FrameLoader.h:
  • loader/FrameLoaderClient.h:
  • loader/HistoryController.h:
  • loader/ShouldSkipSafeBrowsingCheck.h:
  • loader/ShouldTreatAsContinuingLoad.h:
  • page/AutoplayEvent.h:
  • page/ChromeClient.h:
  • page/DiagnosticLoggingClient.h:
  • page/Page.h:
  • platform/CookiesStrategy.h:
  • platform/audio/AudioSession.h:
  • platform/network/NetworkStorageSession.h:
  • platform/network/StoredCredentialsPolicy.h:
  • workers/service/SWClientConnection.h:
  • workers/service/ServiceWorkerContainer.h:
  • workers/service/ServiceWorkerRegistrationData.h:
  • workers/service/ServiceWorkerRegistrationOptions.h:
  • workers/service/ServiceWorkerTypes.h:
  • workers/service/ServiceWorkerUpdateViaCache.h:
  • workers/service/server/SWServer.h:
  • workers/service/server/SWServerRegistration.h:

Source/WebKit:

  • NetworkProcess/NetworkConnectionToWebProcess.h:
  • NetworkProcess/NetworkConnectionToWebProcess.messages.in:
  • NetworkProcess/NetworkDataTask.h:
  • NetworkProcess/NetworkProcess.h:
  • NetworkProcess/NetworkProcess.messages.in:
  • Shared/Authentication/AuthenticationChallengeDisposition.h:
  • Shared/Authentication/AuthenticationManager.h:
  • Shared/Authentication/AuthenticationManager.messages.in:
  • Shared/DragControllerAction.h:
  • Shared/LayerTreeContext.h:
  • Shared/UndoOrRedo.h:
  • UIProcess/Authentication/AuthenticationDecisionListener.h:
  • UIProcess/Cocoa/WebViewImpl.h:
  • UIProcess/Network/NetworkProcessProxy.h:
  • UIProcess/Network/NetworkProcessProxy.messages.in:
  • UIProcess/Notifications/WebNotification.h:
  • UIProcess/Notifications/WebNotificationManagerProxy.h:
  • UIProcess/PageClient.h:
  • UIProcess/UserContent/WebUserContentControllerProxy.h:
  • UIProcess/WebPageProxy.h:
  • UIProcess/WebPageProxy.messages.in:
  • UIProcess/ios/PageClientImplIOS.h:
  • UIProcess/ios/WKContentViewInteraction.h:
  • UIProcess/ios/forms/WKAirPlayRoutePicker.h:
  • WebProcess/Automation/WebAutomationSessionProxy.messages.in:
  • WebProcess/MediaStream/UserMediaPermissionRequestManager.h:
  • WebProcess/Storage/WebSWClientConnection.messages.in:
  • WebProcess/UserContent/InjectUserScriptImmediately.h:
  • WebProcess/UserContent/WebUserContentController.h:
  • WebProcess/UserContent/WebUserContentController.messages.in:
  • WebProcess/WebPage/WebPage.h:
  • WebProcess/WebPage/WebPage.messages.in:
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1/*
2 Copyright (C) 2007 Staikos Computing Services Inc.
3 Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
4 Copyright (C) 2012 Samsung Electronics
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#pragma once
23
24#include "WebEditCommandProxy.h"
25#include "WebPageProxy.h"
26
27namespace WebKit {
28
29enum class UndoOrRedo : bool;
30
31class DefaultUndoController {
32public:
33 void registerEditCommand(Ref<WebEditCommandProxy>&&, UndoOrRedo);
34 void clearAllEditCommands();
35 bool canUndoRedo(UndoOrRedo);
36 void executeUndoRedo(UndoOrRedo);
37
38private:
39 typedef Vector<RefPtr<WebEditCommandProxy> > CommandVector;
40 CommandVector m_undoStack;
41 CommandVector m_redoStack;
42};
43
44} // namespace WebKit
Note: See TracBrowser for help on using the repository browser.