Remove 'get_*' on getters as per RFC 0344 on various components

This commit is contained in:
Mathieu Rheaume 2015-09-07 22:25:09 -04:00
parent 2733060564
commit 7320433cca
30 changed files with 167 additions and 168 deletions

View file

@ -40,10 +40,10 @@ impl ServoBrowser {
}
}
pub fn get_title_for_main_frame(&self) {
pub fn request_title_for_main_frame(&self) {
match *self {
ServoBrowser::OnScreen(ref browser) => browser.get_title_for_main_frame(),
ServoBrowser::OffScreen(ref browser) => browser.get_title_for_main_frame(),
ServoBrowser::OnScreen(ref browser) => browser.request_title_for_main_frame(),
ServoBrowser::OffScreen(ref browser) => browser.request_title_for_main_frame(),
ServoBrowser::Invalid => {}
}
}
@ -165,7 +165,7 @@ impl ServoCefBrowser {
pub trait ServoCefBrowserExtensions {
fn init(&self, window_info: &cef_window_info_t);
fn send_window_event(&self, event: WindowEvent);
fn get_title_for_main_frame(&self);
fn request_title_for_main_frame(&self);
fn pinch_zoom_level(&self) -> f32;
}
@ -207,8 +207,8 @@ impl ServoCefBrowserExtensions for CefBrowser {
}
}
fn get_title_for_main_frame(&self) {
self.downcast().servo_browser.borrow().get_title_for_main_frame()
fn request_title_for_main_frame(&self) {
self.downcast().servo_browser.borrow().request_title_for_main_frame()
}
fn pinch_zoom_level(&self) -> f32 {

View file

@ -46,7 +46,7 @@ full_cef_class_impl! {
fn get_text(&this, visitor: *mut cef_string_visitor_t [CefStringVisitor],) -> () {{
let this = this.downcast();
*this.title_visitor.borrow_mut() = Some(visitor);
this.browser.borrow().as_ref().unwrap().get_title_for_main_frame();
this.browser.borrow().as_ref().unwrap().request_title_for_main_frame();
}}
}
}