#include "third_party/blink/renderer/core/editing/commands/style_commands.h"
#include "mojo/public/mojom/base/text_direction.mojom-blink.h"
#include "third_party/blink/renderer/core/css/css_computed_style_declaration.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_property_value_set.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/editing/commands/apply_style_command.h"
#include "third_party/blink/renderer/core/editing/editing_behavior.h"
#include "third_party/blink/renderer/core/editing/editing_style_utilities.h"
#include "third_party/blink/renderer/core/editing/editing_tri_state.h"
#include "third_party/blink/renderer/core/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/editor.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/frame_selection.h"
#include "third_party/blink/renderer/core/editing/ime/input_method_controller.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/html/html_font_element.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
namespace blink {
void StyleCommands::ApplyStyle(LocalFrame& frame,
CSSPropertyValueSet* style,
InputEvent::InputType input_type) { … }
void StyleCommands::ApplyStyleToSelection(LocalFrame& frame,
CSSPropertyValueSet* style,
InputEvent::InputType input_type) { … }
bool StyleCommands::ApplyCommandToFrame(LocalFrame& frame,
EditorCommandSource source,
InputEvent::InputType input_type,
CSSPropertyValueSet* style) { … }
bool StyleCommands::ExecuteApplyStyle(LocalFrame& frame,
EditorCommandSource source,
InputEvent::InputType input_type,
CSSPropertyID property_id,
const String& property_value) { … }
bool StyleCommands::ExecuteApplyStyle(LocalFrame& frame,
EditorCommandSource source,
InputEvent::InputType input_type,
CSSPropertyID property_id,
CSSValueID property_value) { … }
bool StyleCommands::ExecuteBackColor(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String& value) { … }
bool StyleCommands::ExecuteForeColor(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String& value) { … }
bool StyleCommands::ExecuteFontName(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String& value) { … }
bool StyleCommands::ExecuteFontSize(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String& value) { … }
bool StyleCommands::ExecuteFontSizeDelta(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String& value) { … }
bool StyleCommands::ExecuteMakeTextWritingDirectionLeftToRight(
LocalFrame& frame,
Event*,
EditorCommandSource,
const String&) { … }
bool StyleCommands::ExecuteMakeTextWritingDirectionNatural(LocalFrame& frame,
Event*,
EditorCommandSource,
const String&) { … }
bool StyleCommands::ExecuteMakeTextWritingDirectionRightToLeft(
LocalFrame& frame,
Event*,
EditorCommandSource,
const String&) { … }
bool StyleCommands::SelectionStartHasStyle(LocalFrame& frame,
CSSPropertyID property_id,
const String& value) { … }
bool StyleCommands::ExecuteToggleStyle(LocalFrame& frame,
EditorCommandSource source,
InputEvent::InputType input_type,
CSSPropertyID property_id,
const char* off_value,
const char* on_value) { … }
bool StyleCommands::ExecuteToggleBold(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
bool StyleCommands::ExecuteToggleItalic(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
bool StyleCommands::ExecuteSubscript(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
bool StyleCommands::ExecuteSuperscript(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
bool StyleCommands::ExecuteUnscript(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
String StyleCommands::ComputeToggleStyleInList(EditingStyle& selection_style,
CSSPropertyID property_id,
const CSSValue& value) { … }
bool StyleCommands::ExecuteToggleStyleInList(LocalFrame& frame,
EditorCommandSource source,
InputEvent::InputType input_type,
CSSPropertyID property_id,
const CSSValue& value) { … }
bool StyleCommands::ExecuteStrikethrough(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
bool StyleCommands::ExecuteUnderline(LocalFrame& frame,
Event*,
EditorCommandSource source,
const String&) { … }
bool StyleCommands::ExecuteStyleWithCSS(LocalFrame& frame,
Event*,
EditorCommandSource,
const String& value) { … }
bool StyleCommands::ExecuteUseCSS(LocalFrame& frame,
Event*,
EditorCommandSource,
const String& value) { … }
EditingTriState StyleCommands::StateStyle(LocalFrame& frame,
CSSPropertyID property_id,
const char* desired_value) { … }
EditingTriState StyleCommands::StateBold(LocalFrame& frame, Event*) { … }
EditingTriState StyleCommands::StateItalic(LocalFrame& frame, Event*) { … }
EditingTriState StyleCommands::StateStrikethrough(LocalFrame& frame, Event*) { … }
EditingTriState StyleCommands::StateStyleWithCSS(LocalFrame& frame, Event*) { … }
EditingTriState StyleCommands::StateSubscript(LocalFrame& frame, Event*) { … }
EditingTriState StyleCommands::StateSuperscript(LocalFrame& frame, Event*) { … }
bool StyleCommands::IsUnicodeBidiNestedOrMultipleEmbeddings(
CSSValueID value_id) { … }
mojo_base::mojom::blink::TextDirection StyleCommands::TextDirectionForSelection(
const VisibleSelection& selection,
EditingStyle* typing_style,
bool& has_nested_or_multiple_embeddings) { … }
EditingTriState StyleCommands::StateTextWritingDirection(
LocalFrame& frame,
mojo_base::mojom::blink::TextDirection direction) { … }
EditingTriState StyleCommands::StateTextWritingDirectionLeftToRight(
LocalFrame& frame,
Event*) { … }
EditingTriState StyleCommands::StateTextWritingDirectionNatural(
LocalFrame& frame,
Event*) { … }
EditingTriState StyleCommands::StateTextWritingDirectionRightToLeft(
LocalFrame& frame,
Event*) { … }
EditingTriState StyleCommands::StateUnderline(LocalFrame& frame, Event*) { … }
String StyleCommands::SelectionStartCSSPropertyValue(
LocalFrame& frame,
CSSPropertyID property_id) { … }
String StyleCommands::ValueStyle(LocalFrame& frame, CSSPropertyID property_id) { … }
String StyleCommands::ValueBackColor(const EditorInternalCommand&,
LocalFrame& frame,
Event*) { … }
String StyleCommands::ValueForeColor(const EditorInternalCommand&,
LocalFrame& frame,
Event*) { … }
String StyleCommands::ValueFontName(const EditorInternalCommand&,
LocalFrame& frame,
Event*) { … }
String StyleCommands::ValueFontSize(const EditorInternalCommand&,
LocalFrame& frame,
Event*) { … }
String StyleCommands::ValueFontSizeDelta(const EditorInternalCommand&,
LocalFrame& frame,
Event*) { … }
}