mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Issue #307:
- Add a CefBrowser::HasDocument() method that tests if a document has been loaded in the browser window. - Modify ClientHandler::GetDownloadHandler() to demonstrate how to close a download popup window. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@282 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -76,6 +76,7 @@ public:
|
||||
virtual CefWindowHandle GetOpenerWindowHandle() OVERRIDE
|
||||
{ return opener_window(); }
|
||||
virtual bool IsPopup() OVERRIDE { return is_popup(); }
|
||||
virtual bool HasDocument() OVERRIDE { return has_document(); }
|
||||
virtual CefRefPtr<CefClient> GetClient() OVERRIDE { return client_; }
|
||||
virtual CefRefPtr<CefFrame> GetMainFrame() OVERRIDE
|
||||
{ return GetMainCefFrame(); }
|
||||
@@ -322,6 +323,8 @@ public:
|
||||
void set_nav_state(bool can_go_back, bool can_go_forward);
|
||||
bool can_go_back();
|
||||
bool can_go_forward();
|
||||
void set_has_document(bool has_document);
|
||||
bool has_document();
|
||||
|
||||
#if defined(OS_WIN)
|
||||
void set_opener_was_disabled_by_modal_loop(bool disabled)
|
||||
@@ -368,6 +371,7 @@ protected:
|
||||
double zoom_level_;
|
||||
bool can_go_back_;
|
||||
bool can_go_forward_;
|
||||
bool has_document_;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
// Context object used to manage printing.
|
||||
|
Reference in New Issue
Block a user