diff options
Diffstat (limited to 'src/core/frontend/applets')
| -rw-r--r-- | src/core/frontend/applets/general.cpp (renamed from src/core/frontend/applets/general_frontend.cpp) | 2 | ||||
| -rw-r--r-- | src/core/frontend/applets/general.h (renamed from src/core/frontend/applets/general_frontend.h) | 0 | ||||
| -rw-r--r-- | src/core/frontend/applets/profile_select.h | 8 | ||||
| -rw-r--r-- | src/core/frontend/applets/software_keyboard.cpp | 12 | ||||
| -rw-r--r-- | src/core/frontend/applets/software_keyboard.h | 22 | ||||
| -rw-r--r-- | src/core/frontend/applets/web_browser.cpp | 4 | ||||
| -rw-r--r-- | src/core/frontend/applets/web_browser.h | 4 |
7 files changed, 26 insertions, 26 deletions
diff --git a/src/core/frontend/applets/general_frontend.cpp b/src/core/frontend/applets/general.cpp index b4b213a31..4c299ee9c 100644 --- a/src/core/frontend/applets/general_frontend.cpp +++ b/src/core/frontend/applets/general.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "common/logging/log.h" | 4 | #include "common/logging/log.h" |
| 5 | #include "core/frontend/applets/general_frontend.h" | 5 | #include "core/frontend/applets/general.h" |
| 6 | 6 | ||
| 7 | namespace Core::Frontend { | 7 | namespace Core::Frontend { |
| 8 | 8 | ||
diff --git a/src/core/frontend/applets/general_frontend.h b/src/core/frontend/applets/general.h index 319838ac7..319838ac7 100644 --- a/src/core/frontend/applets/general_frontend.h +++ b/src/core/frontend/applets/general.h | |||
diff --git a/src/core/frontend/applets/profile_select.h b/src/core/frontend/applets/profile_select.h index 92e2737ea..880b69ad6 100644 --- a/src/core/frontend/applets/profile_select.h +++ b/src/core/frontend/applets/profile_select.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | 8 | ||
| 9 | #include "common/uuid.h" | 9 | #include "common/uuid.h" |
| 10 | #include "core/frontend/applets/applet.h" | 10 | #include "core/frontend/applets/applet.h" |
| 11 | #include "core/hle/service/am/applets/applet_profile_select.h" | 11 | #include "core/hle/service/am/frontend/applet_profile_select.h" |
| 12 | 12 | ||
| 13 | namespace Core::Frontend { | 13 | namespace Core::Frontend { |
| 14 | 14 | ||
| 15 | struct ProfileSelectParameters { | 15 | struct ProfileSelectParameters { |
| 16 | Service::AM::Applets::UiMode mode; | 16 | Service::AM::Frontend::UiMode mode; |
| 17 | std::array<Common::UUID, 8> invalid_uid_list; | 17 | std::array<Common::UUID, 8> invalid_uid_list; |
| 18 | Service::AM::Applets::UiSettingsDisplayOptions display_options; | 18 | Service::AM::Frontend::UiSettingsDisplayOptions display_options; |
| 19 | Service::AM::Applets::UserSelectionPurpose purpose; | 19 | Service::AM::Frontend::UserSelectionPurpose purpose; |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | class ProfileSelectApplet : public Applet { | 22 | class ProfileSelectApplet : public Applet { |
diff --git a/src/core/frontend/applets/software_keyboard.cpp b/src/core/frontend/applets/software_keyboard.cpp index 7655d215b..d00da8ac9 100644 --- a/src/core/frontend/applets/software_keyboard.cpp +++ b/src/core/frontend/applets/software_keyboard.cpp | |||
| @@ -69,7 +69,7 @@ void DefaultSoftwareKeyboardApplet::ShowNormalKeyboard() const { | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | void DefaultSoftwareKeyboardApplet::ShowTextCheckDialog( | 71 | void DefaultSoftwareKeyboardApplet::ShowTextCheckDialog( |
| 72 | Service::AM::Applets::SwkbdTextCheckResult text_check_result, | 72 | Service::AM::Frontend::SwkbdTextCheckResult text_check_result, |
| 73 | std::u16string text_check_message) const { | 73 | std::u16string text_check_message) const { |
| 74 | LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to show the text check dialog."); | 74 | LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to show the text check dialog."); |
| 75 | } | 75 | } |
| @@ -118,7 +118,7 @@ void DefaultSoftwareKeyboardApplet::InlineTextChanged(InlineTextParameters text_ | |||
| 118 | "\ncursor_position={}", | 118 | "\ncursor_position={}", |
| 119 | Common::UTF16ToUTF8(text_parameters.input_text), text_parameters.cursor_position); | 119 | Common::UTF16ToUTF8(text_parameters.input_text), text_parameters.cursor_position); |
| 120 | 120 | ||
| 121 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, | 121 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::ChangedString, |
| 122 | text_parameters.input_text, text_parameters.cursor_position); | 122 | text_parameters.input_text, text_parameters.cursor_position); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| @@ -127,22 +127,22 @@ void DefaultSoftwareKeyboardApplet::ExitKeyboard() const { | |||
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | void DefaultSoftwareKeyboardApplet::SubmitNormalText(std::u16string text) const { | 129 | void DefaultSoftwareKeyboardApplet::SubmitNormalText(std::u16string text) const { |
| 130 | submit_normal_callback(Service::AM::Applets::SwkbdResult::Ok, text, true); | 130 | submit_normal_callback(Service::AM::Frontend::SwkbdResult::Ok, text, true); |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | void DefaultSoftwareKeyboardApplet::SubmitInlineText(std::u16string_view text) const { | 133 | void DefaultSoftwareKeyboardApplet::SubmitInlineText(std::u16string_view text) const { |
| 134 | std::this_thread::sleep_for(std::chrono::milliseconds(500)); | 134 | std::this_thread::sleep_for(std::chrono::milliseconds(500)); |
| 135 | 135 | ||
| 136 | for (std::size_t index = 0; index < text.size(); ++index) { | 136 | for (std::size_t index = 0; index < text.size(); ++index) { |
| 137 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::ChangedString, | 137 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::ChangedString, |
| 138 | std::u16string(text.data(), text.data() + index + 1), | 138 | std::u16string(text.data(), text.data() + index + 1), |
| 139 | static_cast<s32>(index) + 1); | 139 | static_cast<s32>(index) + 1); |
| 140 | 140 | ||
| 141 | std::this_thread::sleep_for(std::chrono::milliseconds(250)); | 141 | std::this_thread::sleep_for(std::chrono::milliseconds(250)); |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | submit_inline_callback(Service::AM::Applets::SwkbdReplyType::DecidedEnter, std::u16string(text), | 144 | submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::DecidedEnter, |
| 145 | static_cast<s32>(text.size())); | 145 | std::u16string(text), static_cast<s32>(text.size())); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | } // namespace Core::Frontend | 148 | } // namespace Core::Frontend |
diff --git a/src/core/frontend/applets/software_keyboard.h b/src/core/frontend/applets/software_keyboard.h index 8ed96da24..a32a98e4c 100644 --- a/src/core/frontend/applets/software_keyboard.h +++ b/src/core/frontend/applets/software_keyboard.h | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | 9 | ||
| 10 | #include "core/frontend/applets/applet.h" | 10 | #include "core/frontend/applets/applet.h" |
| 11 | #include "core/hle/service/am/applets/applet_software_keyboard_types.h" | 11 | #include "core/hle/service/am/frontend/applet_software_keyboard_types.h" |
| 12 | 12 | ||
| 13 | namespace Core::Frontend { | 13 | namespace Core::Frontend { |
| 14 | 14 | ||
| @@ -23,10 +23,10 @@ struct KeyboardInitializeParameters { | |||
| 23 | u32 max_text_length; | 23 | u32 max_text_length; |
| 24 | u32 min_text_length; | 24 | u32 min_text_length; |
| 25 | s32 initial_cursor_position; | 25 | s32 initial_cursor_position; |
| 26 | Service::AM::Applets::SwkbdType type; | 26 | Service::AM::Frontend::SwkbdType type; |
| 27 | Service::AM::Applets::SwkbdPasswordMode password_mode; | 27 | Service::AM::Frontend::SwkbdPasswordMode password_mode; |
| 28 | Service::AM::Applets::SwkbdTextDrawType text_draw_type; | 28 | Service::AM::Frontend::SwkbdTextDrawType text_draw_type; |
| 29 | Service::AM::Applets::SwkbdKeyDisableFlags key_disable_flags; | 29 | Service::AM::Frontend::SwkbdKeyDisableFlags key_disable_flags; |
| 30 | bool use_blur_background; | 30 | bool use_blur_background; |
| 31 | bool enable_backspace_button; | 31 | bool enable_backspace_button; |
| 32 | bool enable_return_button; | 32 | bool enable_return_button; |
| @@ -40,8 +40,8 @@ struct InlineAppearParameters { | |||
| 40 | f32 key_top_scale_y; | 40 | f32 key_top_scale_y; |
| 41 | f32 key_top_translate_x; | 41 | f32 key_top_translate_x; |
| 42 | f32 key_top_translate_y; | 42 | f32 key_top_translate_y; |
| 43 | Service::AM::Applets::SwkbdType type; | 43 | Service::AM::Frontend::SwkbdType type; |
| 44 | Service::AM::Applets::SwkbdKeyDisableFlags key_disable_flags; | 44 | Service::AM::Frontend::SwkbdKeyDisableFlags key_disable_flags; |
| 45 | bool key_top_as_floating; | 45 | bool key_top_as_floating; |
| 46 | bool enable_backspace_button; | 46 | bool enable_backspace_button; |
| 47 | bool enable_return_button; | 47 | bool enable_return_button; |
| @@ -56,9 +56,9 @@ struct InlineTextParameters { | |||
| 56 | class SoftwareKeyboardApplet : public Applet { | 56 | class SoftwareKeyboardApplet : public Applet { |
| 57 | public: | 57 | public: |
| 58 | using SubmitInlineCallback = | 58 | using SubmitInlineCallback = |
| 59 | std::function<void(Service::AM::Applets::SwkbdReplyType, std::u16string, s32)>; | 59 | std::function<void(Service::AM::Frontend::SwkbdReplyType, std::u16string, s32)>; |
| 60 | using SubmitNormalCallback = | 60 | using SubmitNormalCallback = |
| 61 | std::function<void(Service::AM::Applets::SwkbdResult, std::u16string, bool)>; | 61 | std::function<void(Service::AM::Frontend::SwkbdResult, std::u16string, bool)>; |
| 62 | 62 | ||
| 63 | virtual ~SoftwareKeyboardApplet(); | 63 | virtual ~SoftwareKeyboardApplet(); |
| 64 | 64 | ||
| @@ -69,7 +69,7 @@ public: | |||
| 69 | 69 | ||
| 70 | virtual void ShowNormalKeyboard() const = 0; | 70 | virtual void ShowNormalKeyboard() const = 0; |
| 71 | 71 | ||
| 72 | virtual void ShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | 72 | virtual void ShowTextCheckDialog(Service::AM::Frontend::SwkbdTextCheckResult text_check_result, |
| 73 | std::u16string text_check_message) const = 0; | 73 | std::u16string text_check_message) const = 0; |
| 74 | 74 | ||
| 75 | virtual void ShowInlineKeyboard(InlineAppearParameters appear_parameters) const = 0; | 75 | virtual void ShowInlineKeyboard(InlineAppearParameters appear_parameters) const = 0; |
| @@ -93,7 +93,7 @@ public: | |||
| 93 | 93 | ||
| 94 | void ShowNormalKeyboard() const override; | 94 | void ShowNormalKeyboard() const override; |
| 95 | 95 | ||
| 96 | void ShowTextCheckDialog(Service::AM::Applets::SwkbdTextCheckResult text_check_result, | 96 | void ShowTextCheckDialog(Service::AM::Frontend::SwkbdTextCheckResult text_check_result, |
| 97 | std::u16string text_check_message) const override; | 97 | std::u16string text_check_message) const override; |
| 98 | 98 | ||
| 99 | void ShowInlineKeyboard(InlineAppearParameters appear_parameters) const override; | 99 | void ShowInlineKeyboard(InlineAppearParameters appear_parameters) const override; |
diff --git a/src/core/frontend/applets/web_browser.cpp b/src/core/frontend/applets/web_browser.cpp index 6e703ef06..eca8d6d98 100644 --- a/src/core/frontend/applets/web_browser.cpp +++ b/src/core/frontend/applets/web_browser.cpp | |||
| @@ -18,7 +18,7 @@ void DefaultWebBrowserApplet::OpenLocalWebPage(const std::string& local_url, | |||
| 18 | LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open local web page at {}", | 18 | LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open local web page at {}", |
| 19 | local_url); | 19 | local_url); |
| 20 | 20 | ||
| 21 | callback(Service::AM::Applets::WebExitReason::WindowClosed, "http://localhost/"); | 21 | callback(Service::AM::Frontend::WebExitReason::WindowClosed, "http://localhost/"); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | void DefaultWebBrowserApplet::OpenExternalWebPage(const std::string& external_url, | 24 | void DefaultWebBrowserApplet::OpenExternalWebPage(const std::string& external_url, |
| @@ -26,7 +26,7 @@ void DefaultWebBrowserApplet::OpenExternalWebPage(const std::string& external_ur | |||
| 26 | LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open external web page at {}", | 26 | LOG_WARNING(Service_AM, "(STUBBED) called, backend requested to open external web page at {}", |
| 27 | external_url); | 27 | external_url); |
| 28 | 28 | ||
| 29 | callback(Service::AM::Applets::WebExitReason::WindowClosed, "http://localhost/"); | 29 | callback(Service::AM::Frontend::WebExitReason::WindowClosed, "http://localhost/"); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | } // namespace Core::Frontend | 32 | } // namespace Core::Frontend |
diff --git a/src/core/frontend/applets/web_browser.h b/src/core/frontend/applets/web_browser.h index 178bbdd3f..b70856a22 100644 --- a/src/core/frontend/applets/web_browser.h +++ b/src/core/frontend/applets/web_browser.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include <functional> | 6 | #include <functional> |
| 7 | 7 | ||
| 8 | #include "core/frontend/applets/applet.h" | 8 | #include "core/frontend/applets/applet.h" |
| 9 | #include "core/hle/service/am/applets/applet_web_browser_types.h" | 9 | #include "core/hle/service/am/frontend/applet_web_browser_types.h" |
| 10 | 10 | ||
| 11 | namespace Core::Frontend { | 11 | namespace Core::Frontend { |
| 12 | 12 | ||
| @@ -14,7 +14,7 @@ class WebBrowserApplet : public Applet { | |||
| 14 | public: | 14 | public: |
| 15 | using ExtractROMFSCallback = std::function<void()>; | 15 | using ExtractROMFSCallback = std::function<void()>; |
| 16 | using OpenWebPageCallback = | 16 | using OpenWebPageCallback = |
| 17 | std::function<void(Service::AM::Applets::WebExitReason, std::string)>; | 17 | std::function<void(Service::AM::Frontend::WebExitReason, std::string)>; |
| 18 | 18 | ||
| 19 | virtual ~WebBrowserApplet(); | 19 | virtual ~WebBrowserApplet(); |
| 20 | 20 | ||