| OLD | NEW |
| 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 CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 v8::Isolate* isolate, | 182 v8::Isolate* isolate, |
| 183 v8::Local<v8::Context> context) = 0; | 183 v8::Local<v8::Context> context) = 0; |
| 184 | 184 |
| 185 // Adds |message| to the DevTools console. | 185 // Adds |message| to the DevTools console. |
| 186 virtual void AddMessageToConsole(ConsoleMessageLevel level, | 186 virtual void AddMessageToConsole(ConsoleMessageLevel level, |
| 187 const std::string& message) = 0; | 187 const std::string& message) = 0; |
| 188 | 188 |
| 189 // Whether or not this frame is using Lo-Fi. | 189 // Whether or not this frame is using Lo-Fi. |
| 190 virtual bool IsUsingLoFi() const = 0; | 190 virtual bool IsUsingLoFi() const = 0; |
| 191 | 191 |
| 192 // Whether or not this frame is currently pasting. |
| 193 virtual bool IsPasting() const = 0; |
| 194 |
| 192 protected: | 195 protected: |
| 193 ~RenderFrame() override {} | 196 ~RenderFrame() override {} |
| 194 | 197 |
| 195 private: | 198 private: |
| 196 // This interface should only be implemented inside content. | 199 // This interface should only be implemented inside content. |
| 197 friend class RenderFrameImpl; | 200 friend class RenderFrameImpl; |
| 198 RenderFrame() {} | 201 RenderFrame() {} |
| 199 }; | 202 }; |
| 200 | 203 |
| 201 } // namespace content | 204 } // namespace content |
| 202 | 205 |
| 203 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 206 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
| OLD | NEW |