native_browser_view.cc 818 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2017 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include <vector>
  5. #include "atom/browser/native_browser_view.h"
  6. #include "atom/browser/api/atom_api_web_contents.h"
  7. #include "brightray/browser/inspectable_web_contents.h"
  8. namespace atom {
  9. NativeBrowserView::NativeBrowserView(
  10. brightray::InspectableWebContents* inspectable_web_contents)
  11. : inspectable_web_contents_(inspectable_web_contents) {}
  12. NativeBrowserView::~NativeBrowserView() {}
  13. brightray::InspectableWebContentsView*
  14. NativeBrowserView::GetInspectableWebContentsView() {
  15. return inspectable_web_contents_->GetView();
  16. }
  17. content::WebContents* NativeBrowserView::GetWebContents() {
  18. return inspectable_web_contents_->GetWebContents();
  19. }
  20. } // namespace atom