Fixes #202 This PR fixes code style for the project files. The Problem Different files in the project use different code style. That is not consistent and leads to harder maintenance of the project. Description of the changes: Have investigated and determined the most used code style across the given codebase Have configured IDE and applied code style to all project files. Have crafted clang-formatter config. see https://clang.llvm.org/docs/ClangFormat.html https://clang.llvm.org/docs/ClangFormatStyleOptions.html Some cases were fixed manually How changes were validated: manual/ad-hoc testing, automated testing All tests pass as before because these are only code style changes. Additional Please review, and let me know if I have any mistake in the code style. In case of any mistake, I will change the configuration and re-apply it to the project.
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
#include "INarratorAnnouncementHost.h"
|
|
|
|
// Declaration of the LiveRegionHost class.
|
|
// This class announces NarratorAnnouncements using the LiveRegionChanged event.
|
|
// This event is unreliable and should be deprecated in favor of the new
|
|
// RaiseNotification API in RS3.
|
|
|
|
namespace CalculatorApp::Common::Automation
|
|
{
|
|
// This class exists so that the app can run on RS2 and use LiveRegions
|
|
// to host notifications on those builds.
|
|
// When the app switches to min version RS3, this class can be removed
|
|
// and the app will switch to using the Notification API.
|
|
// TODO - MSFT 12735088
|
|
public
|
|
ref class LiveRegionHost sealed : public INarratorAnnouncementHost
|
|
{
|
|
public:
|
|
LiveRegionHost();
|
|
|
|
virtual bool IsHostAvailable();
|
|
virtual INarratorAnnouncementHost ^ MakeHost();
|
|
|
|
virtual void Announce(NarratorAnnouncement ^ announcement);
|
|
|
|
private:
|
|
Windows::UI::Xaml::UIElement ^ m_host;
|
|
};
|
|
}
|