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

Side by Side Diff: Source/core/page/Chrome.h

Issue 19804008: Add a Blink API to set window features on a WebView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/page/Chrome.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class IntRect; 43 class IntRect;
44 class Node; 44 class Node;
45 class Page; 45 class Page;
46 class PopupMenu; 46 class PopupMenu;
47 class PopupMenuClient; 47 class PopupMenuClient;
48 class PopupOpeningObserver; 48 class PopupOpeningObserver;
49 class SearchPopupMenu; 49 class SearchPopupMenu;
50 50
51 struct DateTimeChooserParameters; 51 struct DateTimeChooserParameters;
52 struct ViewportArguments; 52 struct ViewportArguments;
53 53 struct WindowFeatures;
54
54 class Chrome : public HostWindow { 55 class Chrome : public HostWindow {
55 public: 56 public:
56 ~Chrome(); 57 ~Chrome();
57 58
58 static PassOwnPtr<Chrome> create(Page*, ChromeClient*); 59 static PassOwnPtr<Chrome> create(Page*, ChromeClient*);
59 60
60 ChromeClient* client() { return m_client; } 61 ChromeClient* client() { return m_client; }
61 62
62 // HostWindow methods. 63 // HostWindow methods.
63 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE; 64 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE;
(...skipping 21 matching lines...) Expand all
85 void takeFocus(FocusDirection) const; 86 void takeFocus(FocusDirection) const;
86 87
87 void focusedNodeChanged(Node*) const; 88 void focusedNodeChanged(Node*) const;
88 89
89 void show(NavigationPolicy = NavigationPolicyIgnore) const; 90 void show(NavigationPolicy = NavigationPolicyIgnore) const;
90 91
91 bool canRunModal() const; 92 bool canRunModal() const;
92 bool canRunModalNow() const; 93 bool canRunModalNow() const;
93 void runModal() const; 94 void runModal() const;
94 95
95 void setToolbarsVisible(bool) const; 96 void setWindowFeatures(const WindowFeatures&) const;
97
96 bool toolbarsVisible() const; 98 bool toolbarsVisible() const;
97
98 void setStatusbarVisible(bool) const;
99 bool statusbarVisible() const; 99 bool statusbarVisible() const;
100
101 void setScrollbarsVisible(bool) const;
102 bool scrollbarsVisible() const; 100 bool scrollbarsVisible() const;
103
104 void setMenubarVisible(bool) const;
105 bool menubarVisible() const; 101 bool menubarVisible() const;
106 102
107 void setResizable(bool) const;
108
109 bool canRunBeforeUnloadConfirmPanel(); 103 bool canRunBeforeUnloadConfirmPanel();
110 bool runBeforeUnloadConfirmPanel(const String& message, Frame*); 104 bool runBeforeUnloadConfirmPanel(const String& message, Frame*);
111 105
112 void closeWindowSoon(); 106 void closeWindowSoon();
113 107
114 void runJavaScriptAlert(Frame*, const String&); 108 void runJavaScriptAlert(Frame*, const String&);
115 bool runJavaScriptConfirm(Frame*, const String&); 109 bool runJavaScriptConfirm(Frame*, const String&);
116 bool runJavaScriptPrompt(Frame*, const String& message, const String& defaul tValue, String& result); 110 bool runJavaScriptPrompt(Frame*, const String& message, const String& defaul tValue, String& result);
117 void setStatusbarText(Frame*, const String&); 111 void setStatusbarText(Frame*, const String&);
118 112
(...skipping 24 matching lines...) Expand all
143 void notifyPopupOpeningObservers() const; 137 void notifyPopupOpeningObservers() const;
144 138
145 Page* m_page; 139 Page* m_page;
146 ChromeClient* m_client; 140 ChromeClient* m_client;
147 Vector<PopupOpeningObserver*> m_popupOpeningObservers; 141 Vector<PopupOpeningObserver*> m_popupOpeningObservers;
148 }; 142 };
149 143
150 } 144 }
151 145
152 #endif // Chrome_h 146 #endif // Chrome_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/Chrome.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698