Skip to content

Commit

Permalink
Remove SB14 code (#3902)
Browse files Browse the repository at this point in the history
b/355449840
  • Loading branch information
madhurajayaraman authored Aug 7, 2024
1 parent d4ec2d6 commit 27db244
Show file tree
Hide file tree
Showing 88 changed files with 16 additions and 921 deletions.
4 changes: 0 additions & 4 deletions cobalt/browser/user_agent_platform_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,7 @@ void InitializeUserAgentPlatformInfoFields(UserAgentPlatformInfo& info) {
info.set_original_design_manufacturer(input.second);
LOG(INFO) << "Set original design manufacturer to " << input.second;
} else if (!input.first.compare("device_type")) {
#if SB_API_VERSION < 15
info.set_device_type(GetDeviceType(input.second));
#else
info.set_device_type(input.second);
#endif
LOG(INFO) << "Set device type to " << input.second;
} else if (!input.first.compare("chipset_model_number")) {
info.set_chipset_model_number(input.second);
Expand Down
4 changes: 0 additions & 4 deletions cobalt/dom/html_media_element.cc
Original file line number Diff line number Diff line change
Expand Up @@ -706,16 +706,12 @@ void HTMLMediaElement::ScheduleEvent(const scoped_refptr<web::Event>& event) {
}

std::string HTMLMediaElement::h5vcc_audio_connectors() const {
#if SB_API_VERSION >= 15
if (!player_) {
return "";
}

std::vector<std::string> configs = player_->GetAudioConnectors();
return base::JoinString(configs, ";");
#else // SB_API_VERSION >= 15
return "";
#endif // SB_API_VERSION >= 15
}

void HTMLMediaElement::CreateMediaPlayer() {
Expand Down
2 changes: 0 additions & 2 deletions cobalt/dom/keyboard_event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,8 @@ std::string KeyboardEvent::NonPrintableKey(int32_t key_code) const {
return "MediaStop";
case keycode::kMediaPlayPause:
return "MediaPlayPause";
#if SB_API_VERSION >= 15
case keycode::kMediaRecord:
return "MediaRecord";
#endif
case keycode::kMediaLaunchMail:
return "LaunchMail";
case keycode::kMediaLaunchMediaSelect:
Expand Down
2 changes: 0 additions & 2 deletions cobalt/dom/keyboard_event_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,12 @@ TEST_F(KeyboardEventTest, CanGetKeyIdentifierAndKeyAndCode) {
EXPECT_EQ(keyboard_event_space->key(), " ");
EXPECT_EQ(keyboard_event_space->code(), "Space");

#if SB_API_VERSION >= 15
init.set_key_code(keycode::kMediaRecord);
scoped_refptr<KeyboardEvent> keyboard_event_record =
new KeyboardEvent("keydown", init);
EXPECT_EQ(keyboard_event_record->key_identifier(), "MediaRecord");
EXPECT_EQ(keyboard_event_record->key(), "MediaRecord");
EXPECT_EQ(keyboard_event_record->code(), "MediaRecord");
#endif
}

TEST_F(KeyboardEventTest, CanGetAltKey) {
Expand Down
2 changes: 0 additions & 2 deletions cobalt/dom/keycode.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ enum {
// Not present in Windows virtual key codes, but would be used by the client.
kMediaRewind = 0xE3,
kMediaFastForward = 0xE4,
#if SB_API_VERSION >= 15
kMediaRecord = 0x1A0,
#endif
};

} // namespace keycode
Expand Down
24 changes: 0 additions & 24 deletions cobalt/extension/configuration.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/crash_handler.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/demuxer.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/font.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/free_space.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/graphics.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/installation_manager.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/javascript_cache.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/media_session.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/memory_mapped_file.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/platform_service.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/updater_notification.h

This file was deleted.

24 changes: 0 additions & 24 deletions cobalt/extension/url_fetcher_observer.h

This file was deleted.

Loading

0 comments on commit 27db244

Please sign in to comment.