mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Glass
This commit is contained in:
parent
3773777141
commit
2db08cde89
167 changed files with 4322 additions and 3473 deletions
|
|
@ -43,6 +43,8 @@ import ContextMenuScreen
|
|||
import MetalEngine
|
||||
import RecaptchaEnterpriseSDK
|
||||
import NavigationBarImpl
|
||||
import ContextUI
|
||||
import ContextControllerImpl
|
||||
|
||||
#if canImport(AppCenter)
|
||||
import AppCenter
|
||||
|
|
@ -334,6 +336,62 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
|||
defaultNavigationBarImpl = { presentationData in
|
||||
return NavigationBarImpl(presentationData: presentationData)
|
||||
}
|
||||
makeContextControllerImpl = { context, presentationData, configuration, recognizer, gesture, workaroundUseLegacyImplementation, disableScreenshots, hideReactionPanelTail in
|
||||
return ContextControllerImpl(
|
||||
context: context,
|
||||
presentationData: presentationData,
|
||||
configuration: configuration,
|
||||
recognizer: recognizer,
|
||||
gesture: gesture,
|
||||
workaroundUseLegacyImplementation: workaroundUseLegacyImplementation,
|
||||
disableScreenshots: disableScreenshots,
|
||||
hideReactionPanelTail: hideReactionPanelTail
|
||||
)
|
||||
}
|
||||
makeContextControllerActionsStackNodeImpl = { context, getController, requestDismiss, requestUpdate in
|
||||
return ContextControllerActionsStackNodeImpl(
|
||||
context: context,
|
||||
getController: getController,
|
||||
requestDismiss: requestDismiss,
|
||||
requestUpdate: requestUpdate
|
||||
)
|
||||
}
|
||||
makeContextControllerActionsListStackItemImpl = { id, items, reactionItems, previewReaction, tip, tipSignal, dismissed in
|
||||
return ContextControllerActionsListStackItem(
|
||||
id: id,
|
||||
items: items,
|
||||
reactionItems: reactionItems,
|
||||
previewReaction: previewReaction,
|
||||
tip: tip,
|
||||
tipSignal: tipSignal,
|
||||
dismissed: dismissed
|
||||
)
|
||||
}
|
||||
makeContextActionNodeImpl = { presentationData, action, getController, actionSelected, requestLayout, requestUpdateAction in
|
||||
return ContextActionNode(
|
||||
presentationData: presentationData,
|
||||
action: action,
|
||||
getController: getController,
|
||||
actionSelected: actionSelected,
|
||||
requestLayout: requestLayout,
|
||||
requestUpdateAction: requestUpdateAction
|
||||
)
|
||||
}
|
||||
makePeekControllerImpl = { presentationData, content, sourceView, activateImmediately in
|
||||
return PeekControllerImpl(
|
||||
presentationData: presentationData,
|
||||
content: content,
|
||||
sourceView: sourceView,
|
||||
activateImmediately: activateImmediately
|
||||
)
|
||||
}
|
||||
makePinchControllerImpl = { sourceNode, disableScreenshots, getContentAreaInScreenSpace in
|
||||
return PinchControllerImpl(
|
||||
sourceNode: sourceNode,
|
||||
disableScreenshots: disableScreenshots,
|
||||
getContentAreaInScreenSpace: getContentAreaInScreenSpace
|
||||
)
|
||||
}
|
||||
|
||||
let (window, hostView) = nativeWindowHostView()
|
||||
let statusBarHost = ApplicationStatusBarHost(scene: window.windowScene)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue