mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
base: Finish rename of TopLevelBrowsingContextId
to WebViewId
(#35896)
The `WebViewId` name is a lot more descriptive these days to the casual reader, so I think we can go ahead and finish the rename. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
81fe4bbb1e
commit
2464d0937f
22 changed files with 416 additions and 570 deletions
|
@ -279,7 +279,7 @@ impl Handler {
|
|||
|
||||
let button = (action.button as u16).into();
|
||||
let cmd_msg = WebDriverCommandMsg::MouseButtonAction(
|
||||
session.top_level_browsing_context_id,
|
||||
session.webview_id,
|
||||
MouseButtonAction::Down,
|
||||
button,
|
||||
pointer_input_state.x as f32,
|
||||
|
@ -326,7 +326,7 @@ impl Handler {
|
|||
|
||||
let button = (action.button as u16).into();
|
||||
let cmd_msg = WebDriverCommandMsg::MouseButtonAction(
|
||||
session.top_level_browsing_context_id,
|
||||
session.webview_id,
|
||||
MouseButtonAction::Up,
|
||||
button,
|
||||
pointer_input_state.x as f32,
|
||||
|
@ -389,10 +389,8 @@ impl Handler {
|
|||
};
|
||||
|
||||
let (sender, receiver) = ipc::channel().unwrap();
|
||||
let cmd_msg = WebDriverCommandMsg::GetWindowSize(
|
||||
self.session.as_ref().unwrap().top_level_browsing_context_id,
|
||||
sender,
|
||||
);
|
||||
let cmd_msg =
|
||||
WebDriverCommandMsg::GetWindowSize(self.session.as_ref().unwrap().webview_id, sender);
|
||||
self.constellation_chan
|
||||
.send(ConstellationMsg::WebDriverCommand(cmd_msg))
|
||||
.unwrap();
|
||||
|
@ -471,11 +469,8 @@ impl Handler {
|
|||
// Step 7
|
||||
if x != current_x || y != current_y {
|
||||
// Step 7.2
|
||||
let cmd_msg = WebDriverCommandMsg::MouseMoveAction(
|
||||
session.top_level_browsing_context_id,
|
||||
x as f32,
|
||||
y as f32,
|
||||
);
|
||||
let cmd_msg =
|
||||
WebDriverCommandMsg::MouseMoveAction(session.webview_id, x as f32, y as f32);
|
||||
self.constellation_chan
|
||||
.send(ConstellationMsg::WebDriverCommand(cmd_msg))
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue