Skip to content

Commit

Permalink
Windows Build Errors fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislas Polu committed Oct 20, 2014
1 parent 8be5009 commit a9e6f1b
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 20 deletions.
1 change: 1 addition & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'msvs_disabled_warnings': [
4189, # local variable is initialized but not referenced
4819, # The file contains a character that cannot be represented in the current code page
4201, # nameless struct/union
4996, # (atlapp.h) 'GetVersionExW': was declared deprecated
],
'msvs_settings': {
Expand Down
1 change: 1 addition & 0 deletions src/api/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/callback.h"

namespace base {
class Thread;
Expand Down
1 change: 0 additions & 1 deletion src/api/api_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "net/socket/socket_descriptor.h"
#include "net/socket/unix_domain_socket_posix.h"
#include "content/public/browser/browser_thread.h"

using namespace content;
Expand Down
3 changes: 0 additions & 3 deletions src/api/api_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"

#include "net/socket/stream_listen_socket.h"
#include "net/socket/socket_descriptor.h"
#include "net/socket/unix_domain_socket_posix.h"
#include "base/files/file_path.h"

#include "src/api/api_binding.h"
Expand Down
2 changes: 1 addition & 1 deletion src/browser/dialog/file_select_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ FileSelectHelper::GetFileTypesFromAcceptType(
int valid_type_count = 0;
int description_id = 0;
for (size_t i = 0; i < accept_types.size(); ++i) {
std::string ascii_type = UTF16ToASCII(accept_types[i]);
std::string ascii_type = base::UTF16ToASCII(accept_types[i]);
if (!IsAcceptTypeValid(ascii_type))
continue;

Expand Down
1 change: 1 addition & 0 deletions src/browser/thrust_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "base/file_util.h"
#include "ui/gfx/codec/png_codec.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
Expand Down
9 changes: 7 additions & 2 deletions src/browser/thrust_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class MenuBar;
//
// This represents an ThrustShell window. The window opens on a `root_url`
// provided at creation. The window exposes only one webcontents with support
// for the <exoframe> tag.
// for the <webview> tag.
//
// The ThrustWindow lives on the BrowserThread::UI thread
class ThrustWindow : public brightray::DefaultWebContentsDelegate,
Expand Down Expand Up @@ -195,6 +195,11 @@ class ThrustWindow : public brightray::DefaultWebContentsDelegate,
// Returns whether the window is closed or not
bool is_closed() { return is_closed_; }

// ### HasFrame
//
// Returns wether the window has frame or not
bool HasFrame() { return has_frame_; }

// ### WindowSize
//
// Retrieves the native Window size
Expand All @@ -210,7 +215,7 @@ class ThrustWindow : public brightray::DefaultWebContentsDelegate,
// Returns the NativeWindow for this Shell
gfx::NativeWindow GetNativeWindow() { return PlatformGetNativeWindow(); }

// ### web_contents
// ### GetWebContents
//
// Returns the underlying web_contents
content::WebContents* GetWebContents() const;
Expand Down
2 changes: 1 addition & 1 deletion src/browser/ui/views/win_frame_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int
WinFrameView::NonClientHitTest(
const gfx::Point& point)
{
if (shell_->has_frame())
if (window_->HasFrame())
return frame_->client_view()->NonClientHitTest(point);
else
return FramelessView::NonClientHitTest(point);
Expand Down
12 changes: 0 additions & 12 deletions thrust_shell.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -391,18 +391,6 @@
'target_name': '<(project_name)_js',
'type': 'none',
'actions': [
{
'inputs': [
'src/renderer/extensions/resources/web_view.js',
],
'outputs': [
'src/renderer/extensions/resources/web_view.js.bin',
],
'action_name': 'xxd web_view.js',
'action': ['xxd', '-i',
'src/renderer/extensions/resources/web_view.js',
'src/renderer/extensions/resources/web_view.js.bin'],
},
],
}, # target <(product_name)_js
{
Expand Down

0 comments on commit a9e6f1b

Please sign in to comment.