Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Unified Diff: chrome/browser/browser.h

Issue 391036: Forbid reloading the Inspector window (Closed)
Patch Set: Follow codereview Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | chrome/browser/tab_contents/render_view_context_menu.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.h
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 7f5f85c3f15ca9500c2e7a95d27543a22105836b..d60ae4e63c5b67525c28a3e8c299825e2fffdaa5 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -56,7 +56,8 @@ class Browser : public TabStripModelDelegate,
TYPE_POPUP = 2,
TYPE_APP = 4,
TYPE_APP_POPUP = TYPE_APP | TYPE_POPUP,
- TYPE_ANY = TYPE_NORMAL | TYPE_POPUP | TYPE_APP
+ TYPE_DEVTOOLS = TYPE_APP | 8,
+ TYPE_ANY = TYPE_NORMAL | TYPE_POPUP | TYPE_APP | TYPE_DEVTOOLS
};
// Possible elements of the Browser window.
@@ -104,6 +105,10 @@ class Browser : public TabStripModelDelegate,
static Browser* CreateForApp(const std::wstring& app_name, Profile* profile,
bool is_popup);
+ // Like Create, but creates a tabstrip-less and toolbar-less
+ // DevTools "app" window.
+ static Browser* CreateForDevTools(Profile* profile);
+
// Set overrides for the initial window bounds and maximized state.
void set_override_bounds(const gfx::Rect& bounds) {
override_bounds_ = bounds;
@@ -559,6 +564,7 @@ class Browser : public TabStripModelDelegate,
virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
virtual void DetachContents(TabContents* source);
virtual bool IsPopup(TabContents* source);
+ virtual bool CanReloadContents(TabContents* source) const;
virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
virtual void URLStarredChanged(TabContents* source, bool starred);
virtual void UpdateTargetURL(TabContents* source, const GURL& url);
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | chrome/browser/tab_contents/render_view_context_menu.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698