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

Side by Side Diff: chrome/browser/devtools/devtools_embedder_message_dispatcher.h

Issue 440663003: DevTools: remove unused resizing strategy code paths, make it solely bounds-based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for landing Created 6 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 class DevToolsEmbedderMessageDispatcher { 26 class DevToolsEmbedderMessageDispatcher {
27 public: 27 public:
28 class Delegate { 28 class Delegate {
29 public: 29 public:
30 virtual ~Delegate() {} 30 virtual ~Delegate() {}
31 31
32 virtual void ActivateWindow() = 0; 32 virtual void ActivateWindow() = 0;
33 virtual void CloseWindow() = 0; 33 virtual void CloseWindow() = 0;
34 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0; 34 virtual void SetInspectedPageBounds(const gfx::Rect& rect) = 0;
35 virtual void SetContentsResizingStrategy(
36 const gfx::Insets& insets, const gfx::Size& min_size) = 0;
37 virtual void InspectElementCompleted() = 0; 35 virtual void InspectElementCompleted() = 0;
38 virtual void InspectedURLChanged(const std::string& url) = 0; 36 virtual void InspectedURLChanged(const std::string& url) = 0;
39 virtual void MoveWindow(int x, int y) = 0; 37 virtual void MoveWindow(int x, int y) = 0;
40 virtual void SetIsDocked(bool is_docked) = 0; 38 virtual void SetIsDocked(bool is_docked) = 0;
41 virtual void OpenInNewTab(const std::string& url) = 0; 39 virtual void OpenInNewTab(const std::string& url) = 0;
42 virtual void SaveToFile(const std::string& url, 40 virtual void SaveToFile(const std::string& url,
43 const std::string& content, 41 const std::string& content,
44 bool save_as) = 0; 42 bool save_as) = 0;
45 virtual void AppendToFile(const std::string& url, 43 virtual void AppendToFile(const std::string& url,
46 const std::string& content) = 0; 44 const std::string& content) = 0;
(...skipping 23 matching lines...) Expand all
70 virtual ~DevToolsEmbedderMessageDispatcher() {} 68 virtual ~DevToolsEmbedderMessageDispatcher() {}
71 virtual bool Dispatch(const std::string& method, 69 virtual bool Dispatch(const std::string& method,
72 const base::ListValue* params, 70 const base::ListValue* params,
73 std::string* error) = 0; 71 std::string* error) = 0;
74 72
75 static DevToolsEmbedderMessageDispatcher* createForDevToolsFrontend( 73 static DevToolsEmbedderMessageDispatcher* createForDevToolsFrontend(
76 Delegate* delegate); 74 Delegate* delegate);
77 }; 75 };
78 76
79 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 77 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698