MCPcopy Create free account
hub / github.com/breach/thrust / WindowOpenDispositionToString

Function WindowOpenDispositionToString

src/browser/web_view/web_view_guest.cc:48–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 LAZY_INSTANCE_INITIALIZER;
47
48std::string WindowOpenDispositionToString(
49 WindowOpenDisposition window_open_disposition) {
50 switch (window_open_disposition) {
51 case IGNORE_ACTION:
52 return "ignore";
53 case SAVE_TO_DISK:
54 return "save_to_disk";
55 case CURRENT_TAB:
56 return "current_tab";
57 case NEW_BACKGROUND_TAB:
58 return "new_background_tab";
59 case NEW_FOREGROUND_TAB:
60 return "new_foreground_tab";
61 case NEW_WINDOW:
62 return "new_window";
63 case NEW_POPUP:
64 return "new_popup";
65 default:
66 NOTREACHED() << "Unknown Window Open Disposition";
67 return "ignore";
68 }
69}
70
71static std::string TerminationStatusToString(base::TerminationStatus status) {
72 switch (status) {

Callers 2

OpenURLFromTabMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected